python3Packages.channels: enable tests

This commit is contained in:
Fabian Affolter 2021-07-24 21:00:45 +02:00
parent 43ced3efad
commit 79953c4bc3

View file

@ -1,23 +1,43 @@
{ lib, buildPythonPackage, fetchPypi, { lib
asgiref, django, daphne , buildPythonPackage
, fetchFromGitHub
, asgiref
, django
, daphne
, pytest-asyncio
, pytest-django
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "channels"; pname = "channels";
version = "3.0.4"; version = "3.0.4";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "django";
sha256 = "0xcbpfisgawqa34ccgz56wzid0ycp3c8wjcppmz8sgd2hx4skngx"; repo = pname;
rev = version;
sha256 = "0jdylcb77n04rqyzg9v6qfzaxp1dnvdvnxddwh3x1qazw3csi5y2";
}; };
# Files are missing in the distribution propagatedBuildInputs = [
doCheck = false; asgiref
django
daphne
];
propagatedBuildInputs = [ asgiref django daphne ]; checkInputs = [
pytest-asyncio
pytest-django
pytestCheckHook
];
pythonImportsCheck = [ "channels" ];
meta = with lib; { meta = with lib; {
description = "Brings event-driven capabilities to Django with a channel system"; description = "Brings event-driven capabilities to Django with a channel system";
license = licenses.bsd3; license = licenses.bsd3;
homepage = "https://github.com/django/channels"; homepage = "https://github.com/django/channels";
maintainers = with maintainers; [ fab ];
}; };
} }