Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
941 B
Nix
47 lines
941 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
django,
|
|
typing-extensions,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
pytest-django,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-choices-field";
|
|
version = "2.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bellini666";
|
|
repo = "django-choices-field";
|
|
rev = "v${version}";
|
|
hash = "sha256-2oLMUM/aE4aY0eEU+CLIjTNQJAMUt/GK5Fw26QN7t34=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
django
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
pytest-django
|
|
];
|
|
|
|
pythonImportsCheck = [ "django_choices_field" ];
|
|
|
|
meta = {
|
|
description = "Django field that set/get django's new TextChoices/IntegerChoices enum";
|
|
homepage = "https://github.com/bellini666/django-choices-field";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ minijackson ];
|
|
};
|
|
}
|