1{ stdenv, buildPythonPackage, fetchPypi,
2 rcssmin, rjsmin, django_appconf }:
3buildPythonPackage rec {
4 pname = "django_compressor";
5 version = "2.3";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1pbygd00l0k5p1r959131khij1km1a1grfxg0r59ar2wyx3n7j27";
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}