Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, 2 rcssmin, rjsmin, django_appconf }: 3buildPythonPackage rec { 4 pname = "django_compressor"; 5 version = "2.4"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0kx7bclfa0sxlsz6ka70zr9ra00lks0hmv1kc99wbanx6xhirvfj"; 10 }; 11 postPatch = '' 12 substituteInPlace setup.py --replace 'rcssmin == 1.0.6' 'rcssmin' \ 13 --replace 'rjsmin == 1.0.12' 'rjsmin' 14 ''; 15 16 # requires django-sekizai, which we don't have packaged yet 17 doCheck = false; 18 19 propagatedBuildInputs = [ rcssmin rjsmin django_appconf ]; 20 21 meta = with stdenv.lib; { 22 description = "Compresses linked and inline JavaScript or CSS into single cached files"; 23 homepage = "https://django-compressor.readthedocs.org/en/latest/"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ desiderius ]; 26 }; 27}