nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 29 lines 888 B view raw
1{ lib, buildPythonPackage, fetchPypi, 2 rcssmin, rjsmin, django-appconf }: 3 4buildPythonPackage rec { 5 pname = "django_compressor"; 6 version = "3.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "c4a87bf65f9a534cfaf1c321a000a229c24e50c6d62ba6ab089482db42e819d9"; 11 }; 12 postPatch = '' 13 substituteInPlace setup.py \ 14 --replace 'rcssmin == 1.0.6' 'rcssmin' \ 15 --replace 'rjsmin == 1.1.0' 'rjsmin' 16 ''; 17 18 # requires django-sekizai, which we don't have packaged yet 19 doCheck = false; 20 21 propagatedBuildInputs = [ rcssmin rjsmin django-appconf ]; 22 23 meta = with lib; { 24 description = "Compresses linked and inline JavaScript or CSS into single cached files"; 25 homepage = "https://django-compressor.readthedocs.org/en/latest/"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ desiderius ]; 28 }; 29}