mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
6b1aab3461
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-django_compressor/versions
28 lines
874 B
Nix
28 lines
874 B
Nix
{ stdenv, buildPythonPackage, fetchPypi,
|
|
rcssmin, rjsmin, django_appconf }:
|
|
buildPythonPackage rec {
|
|
pname = "django_compressor";
|
|
version = "2.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1pbygd00l0k5p1r959131khij1km1a1grfxg0r59ar2wyx3n7j27";
|
|
};
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace 'rcssmin == 1.0.6' 'rcssmin' \
|
|
--replace 'rjsmin == 1.0.12' 'rjsmin'
|
|
'';
|
|
|
|
# requires django-sekizai, which we don't have packaged yet
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [ rcssmin rjsmin django_appconf ];
|
|
|
|
meta = with stdenv.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 ];
|
|
};
|
|
}
|