Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 version = "3.2.2"; 10 format = "setuptools"; 11 pname = "django-cache-url"; 12 13 src = fetchFromGitHub { 14 owner = "epicserve"; 15 repo = "django-cache-url"; 16 rev = "v${version}"; 17 sha256 = "0fxma2w6zl3cfl6wnynmlmp8snks67ffz4jcq4qmdc65xv1l204l"; 18 }; 19 20 postPatch = '' 21 # disable coverage tests 22 sed -i '/--cov/d' setup.cfg 23 ''; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/epicserve/django-cache-url"; 29 description = "Use Cache URLs in your Django application"; 30 license = licenses.mit; 31 maintainers = [ ]; 32 }; 33}