Files
nixpkgs/pkgs/development/python-modules/django-countries/default.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
asgiref,
typing-extensions,
# tests
django,
djangorestframework,
graphene-django,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-countries";
version = "7.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "SmileyChris";
repo = "django-countries";
tag = "v${version}";
hash = "sha256-IR9cJbDVkZrcF3Ti70mV8VeXINQDK8OpwUTWVjD4Zn0=";
};
build-system = [ setuptools ];
dependencies = [
asgiref
typing-extensions
];
nativeCheckInputs = [
django
djangorestframework
graphene-django
pytestCheckHook
pytest-django
];
meta = with lib; {
description = "Provides a country field for Django models";
longDescription = ''
A Django application that provides country choices for use with
forms, flag icons static files, and a country field for models.
'';
homepage = "https://github.com/SmileyChris/django-countries";
changelog = "https://github.com/SmileyChris/django-countries/blob/v${version}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}