a3bb8d7922
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
43 lines
787 B
Nix
43 lines
787 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, asgiref
|
|
, django
|
|
, daphne
|
|
, pytest-asyncio
|
|
, pytest-django
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "channels";
|
|
version = "3.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "django";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0jdylcb77n04rqyzg9v6qfzaxp1dnvdvnxddwh3x1qazw3csi5y2";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
asgiref
|
|
django
|
|
daphne
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytest-django
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "channels" ];
|
|
|
|
meta = with lib; {
|
|
description = "Brings event-driven capabilities to Django with a channel system";
|
|
license = licenses.bsd3;
|
|
homepage = "https://github.com/django/channels";
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|