2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi,
|
2017-07-11 08:44:39 +01:00
|
|
|
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 ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-07-11 08:44:39 +01:00
|
|
|
description = "Compresses linked and inline JavaScript or CSS into single cached files";
|
2020-04-01 02:11:51 +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 ];
|
|
|
|
};
|
|
|
|
}
|