depot/third_party/nixpkgs/pkgs/development/python-modules/channels/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 lines
1,007 B
Nix

{
lib,
asgiref,
buildPythonPackage,
daphne,
django,
fetchFromGitHub,
async-timeout,
pytest-asyncio,
pytest-django,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "channels";
version = "4.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
hash = "sha256-n88MxwYQ4O2kBy/W0Zvi3FtIlhZQQRCssB/lYrFNvps=";
};
propagatedBuildInputs = [
asgiref
django
];
passthru.optional-dependencies = {
daphne = [ daphne ];
};
nativeCheckInputs = [
async-timeout
pytest-asyncio
pytest-django
pytestCheckHook
] ++ passthru.optional-dependencies.daphne;
pythonImportsCheck = [ "channels" ];
meta = with lib; {
description = "Brings event-driven capabilities to Django with a channel system";
homepage = "https://github.com/django/channels";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}