Files
nixpkgs/pkgs/development/python-modules/django-countries/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

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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}