Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # bring your own 7 django, 8 9 # propagates 10 python-stdnum, 11 12 # tests 13 pytest-django, 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "django-localflavor"; 19 version = "4.0"; 20 format = "setuptools"; 21 22 src = fetchFromGitHub { 23 owner = "django"; 24 repo = "django-localflavor"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-UWp3ei1VlEsEfjbJIE+MpffSzYF4X1HEQw+z+5kZoP0="; 27 }; 28 29 buildInputs = [ django ]; 30 31 propagatedBuildInputs = [ python-stdnum ]; 32 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 ]; 43 44 checkInputs = [ 45 pytest-django 46 pytestCheckHook 47 ]; 48 49 DJANGO_SETTINGS_MODULE = "tests.settings"; 50 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 }; 57}