2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
asgiref,
|
|
|
|
buildPythonPackage,
|
|
|
|
daphne,
|
|
|
|
django,
|
|
|
|
fetchFromGitHub,
|
|
|
|
async-timeout,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-django,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "channels";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "4.0.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-30 15:09:59 +00:00
|
|
|
hash = "sha256-n88MxwYQ4O2kBy/W0Zvi3FtIlhZQQRCssB/lYrFNvps=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asgiref
|
|
|
|
django
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
daphne = [ daphne ];
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-04-12 12:48:02 +00:00
|
|
|
async-timeout
|
2021-08-05 21:33:18 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ passthru.optional-dependencies.daphne;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "channels" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Brings event-driven capabilities to Django with a channel system";
|
|
|
|
homepage = "https://github.com/django/channels";
|
2022-10-30 15:09:59 +00:00
|
|
|
license = licenses.bsd3;
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|