Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-localflavor / default.nix
blob5f63532ad96e74ae41668e192d25195d2276f6cf
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # bring your own
6 , django
8 # propagates
9 , python-stdnum
11 # tests
12 , pytest-django
13 , pytestCheckHook
16 buildPythonPackage rec {
17   pname = "django-localflavor";
18   version = "4.0";
19   format = "setuptools";
21   src = fetchFromGitHub {
22     owner = "django";
23     repo = "django-localflavor";
24     rev = "refs/tags/${version}";
25     hash = "sha256-UWp3ei1VlEsEfjbJIE+MpffSzYF4X1HEQw+z+5kZoP0=";
26   };
28   buildInputs = [
29     django
30   ];
32   propagatedBuildInputs = [
33     python-stdnum
34   ];
36   pythonImportsCheck = [
37     # samples
38     "localflavor.ar"
39     "localflavor.de"
40     "localflavor.fr"
41     "localflavor.my"
42     "localflavor.nl"
43     "localflavor.us"
44     "localflavor.za"
45   ];
47   checkInputs = [
48     pytest-django
49     pytestCheckHook
50   ];
52   DJANGO_SETTINGS_MODULE = "tests.settings";
54   meta = with lib; {
55     description = "Country-specific Django helpers";
56     homepage = "https://github.com/django/django-localflavor";
57     license = licenses.bsd3;
58     maintainers = with maintainers; [ hexa ];
59   };