Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 pythonAtLeast, 5 fetchFromGitHub, 6 python, 7 django, 8 packaging, 9 nodejs, 10 js2py, 11 six, 12}: 13 14buildPythonPackage rec { 15 pname = "django-js-reverse"; 16 version = "0.10.1-b1"; 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "BITSOLVER"; 21 repo = "django-js-reverse"; 22 rev = version; 23 hash = "sha256-i78UsxVwxyDAc8LrOVEXLG0tdidoQhvUx7GvPDaH0KY="; 24 }; 25 26 propagatedBuildInputs = [ django ] ++ lib.optionals (pythonAtLeast "3.7") [ packaging ]; 27 28 nativeCheckInputs = [ 29 nodejs 30 js2py 31 six 32 ]; 33 34 checkPhase = '' 35 ${python.interpreter} django_js_reverse/tests/unit_tests.py 36 ''; 37 38 pythonImportsCheck = [ "django_js_reverse" ]; 39 40 meta = with lib; { 41 description = "Javascript url handling for Django that doesn't hurt"; 42 homepage = "https://django-js-reverse.readthedocs.io/en/latest/"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ ambroisie ]; 45 }; 46}