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