1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
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 ];
};
}
|