2021-07-24 21:00:45 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, asgiref
|
|
|
|
, django
|
|
|
|
, daphne
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-django
|
|
|
|
, pytestCheckHook
|
2017-02-20 16:31:01 +01:00
|
|
|
}:
|
2021-07-24 21:00:45 +02:00
|
|
|
|
2017-02-20 16:31:01 +01:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "channels";
|
2021-07-23 23:01:54 +02:00
|
|
|
version = "3.0.4";
|
2017-02-20 16:31:01 +01:00
|
|
|
|
2021-07-24 21:00:45 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0jdylcb77n04rqyzg9v6qfzaxp1dnvdvnxddwh3x1qazw3csi5y2";
|
2017-02-20 16:31:01 +01:00
|
|
|
};
|
|
|
|
|
2021-07-24 21:00:45 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asgiref
|
|
|
|
django
|
|
|
|
daphne
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-02-20 16:31:01 +01:00
|
|
|
|
2021-07-24 21:00:45 +02:00
|
|
|
pythonImportsCheck = [ "channels" ];
|
2017-02-20 16:31:01 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-02-20 16:31:01 +01:00
|
|
|
description = "Brings event-driven capabilities to Django with a channel system";
|
|
|
|
license = licenses.bsd3;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/django/channels";
|
2021-07-24 21:00:45 +02:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-02-20 16:31:01 +01:00
|
|
|
};
|
|
|
|
}
|