Files
nixpkgs/pkgs/development/python-modules/channels/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

61 lines
1.2 KiB
Nix

{
lib,
asgiref,
buildPythonPackage,
daphne,
django,
fetchFromGitHub,
async-timeout,
pytest-asyncio,
pytest-django,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "channels";
version = "4.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "django";
repo = "channels";
tag = version;
hash = "sha256-KBjxaK2j9Xbz35IHqZK68cSLkUk4B7t+J7omcQAtuFM=";
};
build-system = [ setuptools ];
dependencies = [
asgiref
django
];
optional-dependencies = {
daphne = [ daphne ];
};
nativeCheckInputs = [
async-timeout
pytest-asyncio
pytest-django
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
# won't run in sandbox
disabledTestPaths = [
"tests/sample_project/tests/test_selenium.py"
];
pythonImportsCheck = [ "channels" ];
meta = {
description = "Brings event-driven capabilities to Django with a channel system";
homepage = "https://github.com/django/channels";
changelog = "https://github.com/django/channels/blob/${src.tag}/CHANGELOG.txt";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}