1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # tests
7 djangorestframework,
8 html5lib,
9 lxml,
10 pytest-django,
11 pytestCheckHook,
12 pyyaml,
13}:
14
15buildPythonPackage {
16 pname = "django-i18nfield";
17 version = "1.9.4";
18 format = "setuptools";
19
20 src = fetchFromGitHub {
21 owner = "raphaelm";
22 repo = "django-i18nfield";
23 rev = "10488eb6c673be50e50387c76085a7c8d84e9157";
24 hash = "sha256-FF980LTw7RFuG9QgxA96yJsSczCNNMq9WsbacQqIReE=";
25 };
26
27 env.DJANGO_SETTINGS_MODULE = "tests.settings";
28
29 nativeCheckInputs = [
30 djangorestframework
31 html5lib
32 lxml
33 pytest-django
34 pytestCheckHook
35 pyyaml
36 ];
37
38 meta = with lib; {
39 description = "Store internationalized strings in Django models";
40 homepage = "https://github.com/raphaelm/django-i18nfield";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ hexa ];
43 };
44}