567e8dfd8e
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>
61 lines
1.2 KiB
Nix
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 ];
|
|
};
|
|
}
|