at master 62 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 django, 11 python-stdnum, 12 13 # tests 14 pytest-django, 15 pytestCheckHook, 16}: 17 18buildPythonPackage rec { 19 pname = "django-localflavor"; 20 version = "5.0"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "django"; 25 repo = "django-localflavor"; 26 tag = version; 27 hash = "sha256-eYhkWfxoZlnxhCIaqBhoEt0+SbkZKkUNUAy4p3tYf4A="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 django 34 python-stdnum 35 ]; 36 37 pythonImportsCheck = [ 38 # samples 39 "localflavor.ar" 40 "localflavor.de" 41 "localflavor.fr" 42 "localflavor.my" 43 "localflavor.nl" 44 "localflavor.us" 45 "localflavor.za" 46 ]; 47 48 nativeCheckInputs = [ 49 pytest-django 50 pytestCheckHook 51 ]; 52 53 env.DJANGO_SETTINGS_MODULE = "tests.settings"; 54 55 meta = with lib; { 56 changelog = "https://github.com/django/django-localflavor/blob/${src.tag}/docs/changelog.rst"; 57 description = "Country-specific Django helpers"; 58 homepage = "https://github.com/django/django-localflavor"; 59 license = licenses.bsd3; 60 maintainers = with maintainers; [ hexa ]; 61 }; 62}