evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / django-localflavor / default.nix
blob0a2575d87a3618cfdb1c25204d1c15cbffa1e9fe
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # bring your own
7   django,
9   # propagates
10   python-stdnum,
12   # tests
13   pytest-django,
14   pytestCheckHook,
17 buildPythonPackage rec {
18   pname = "django-localflavor";
19   version = "4.0";
20   format = "setuptools";
22   src = fetchFromGitHub {
23     owner = "django";
24     repo = "django-localflavor";
25     rev = "refs/tags/${version}";
26     hash = "sha256-UWp3ei1VlEsEfjbJIE+MpffSzYF4X1HEQw+z+5kZoP0=";
27   };
29   buildInputs = [ django ];
31   propagatedBuildInputs = [ python-stdnum ];
33   pythonImportsCheck = [
34     # samples
35     "localflavor.ar"
36     "localflavor.de"
37     "localflavor.fr"
38     "localflavor.my"
39     "localflavor.nl"
40     "localflavor.us"
41     "localflavor.za"
42   ];
44   checkInputs = [
45     pytest-django
46     pytestCheckHook
47   ];
49   DJANGO_SETTINGS_MODULE = "tests.settings";
51   meta = with lib; {
52     description = "Country-specific Django helpers";
53     homepage = "https://github.com/django/django-localflavor";
54     license = licenses.bsd3;
55     maintainers = with maintainers; [ hexa ];
56   };