mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
30 lines
888 B
Nix
30 lines
888 B
Nix
{ lib, buildPythonPackage, fetchPypi,
|
|
rcssmin, rjsmin, django_appconf }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django_compressor";
|
|
version = "3.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "c4a87bf65f9a534cfaf1c321a000a229c24e50c6d62ba6ab089482db42e819d9";
|
|
};
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace 'rcssmin == 1.0.6' 'rcssmin' \
|
|
--replace 'rjsmin == 1.1.0' 'rjsmin'
|
|
'';
|
|
|
|
# requires django-sekizai, which we don't have packaged yet
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [ rcssmin rjsmin django_appconf ];
|
|
|
|
meta = with lib; {
|
|
description = "Compresses linked and inline JavaScript or CSS into single cached files";
|
|
homepage = "https://django-compressor.readthedocs.org/en/latest/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ desiderius ];
|
|
};
|
|
}
|