2017-07-11 08:44:39 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi,
|
|
|
|
rcssmin, rjsmin, django_appconf }:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django_compressor";
|
2020-02-01 20:58:44 +00:00
|
|
|
version = "2.4";
|
2017-07-11 08:44:39 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-01 20:58:44 +00:00
|
|
|
sha256 = "0kx7bclfa0sxlsz6ka70zr9ra00lks0hmv1kc99wbanx6xhirvfj";
|
2017-07-11 08:44:39 +01:00
|
|
|
};
|
2019-06-16 15:43:17 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace 'rcssmin == 1.0.6' 'rcssmin' \
|
|
|
|
--replace 'rjsmin == 1.0.12' 'rjsmin'
|
|
|
|
'';
|
2017-07-11 08:44:39 +01:00
|
|
|
|
2019-06-16 15:43:17 +01:00
|
|
|
# requires django-sekizai, which we don't have packaged yet
|
2017-07-11 08:44:39 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ rcssmin rjsmin django_appconf ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Compresses linked and inline JavaScript or CSS into single cached files";
|
2019-04-22 09:24:21 +01:00
|
|
|
homepage = https://django-compressor.readthedocs.org/en/latest/;
|
2017-07-11 08:44:39 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
}
|