at 24.11-pre 55 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 django, 6 django-debug-toolbar, 7 psycopg2, 8 beautifulsoup4, 9 python, 10 pytz, 11}: 12 13buildPythonPackage rec { 14 pname = "django-cachalot"; 15 version = "2.6.2"; 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "noripyt"; 20 repo = "django-cachalot"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-8sC0uvfnGh3rp6C9/GsEevVDxAiI6MafIBfUuvnPeas="; 23 }; 24 25 patches = [ 26 # Disable tests for unsupported caching and database types which would 27 # require additional running backends 28 ./disable-unsupported-tests.patch 29 ]; 30 31 propagatedBuildInputs = [ django ]; 32 33 checkInputs = [ 34 beautifulsoup4 35 django-debug-toolbar 36 psycopg2 37 pytz 38 ]; 39 40 pythonImportsCheck = [ "cachalot" ]; 41 42 checkPhase = '' 43 runHook preCheck 44 ${python.interpreter} runtests.py 45 runHook postCheck 46 ''; 47 48 meta = with lib; { 49 description = "No effort, no worry, maximum performance"; 50 homepage = "https://github.com/noripyt/django-cachalot"; 51 changelog = "https://github.com/noripyt/django-cachalot/blob/${src.rev}/CHANGELOG.rst"; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ onny ]; 54 }; 55}