python3Packages.django-compressor: 4.0 -> 4.1

Reindent, reformat, tried to get the tests going, but missing dependency.
This commit is contained in:
Martin Weinelt 2022-08-06 00:22:17 +02:00
parent 33ee10c80e
commit 7ddef1b8b8
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,29 +1,55 @@
{ lib, buildPythonPackage, fetchPypi, { lib
rcssmin, rjsmin, django-appconf }: , buildPythonPackage
, fetchPypi
, rcssmin
, rjsmin
, django-appconf
, beautifulsoup4
, brotli
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-compressor"; pname = "django-compressor";
version = "4.0"; version = "4.1";
format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "django_compressor";
sha256 = "sha256-HbkbbQQpNjami9Eyjce7kNY2sClfZ7HMbU+hArn9JfY="; inherit version;
}; hash = "sha256-js5iHSqY9sZjVIDLizcB24kKmfeT+VyiDLAKvBlNMx0=";
postPatch = '' };
substituteInPlace setup.py \
--replace 'rcssmin == 1.0.6' 'rcssmin' \
--replace 'rjsmin == 1.1.0' 'rjsmin'
'';
# requires django-sekizai, which we don't have packaged yet postPatch = ''
doCheck = false; substituteInPlace setup.py \
--replace "rcssmin == 1.1.0" "rcssmin>=1.1.0" \
--replace "rjsmin == 1.2.0" "rjsmin>=1.2.0"
'';
propagatedBuildInputs = [ rcssmin rjsmin django-appconf ]; propagatedBuildInputs = [
rcssmin
rjsmin
django-appconf
];
meta = with lib; { pythonImportsCheck = [
description = "Compresses linked and inline JavaScript or CSS into single cached files"; "compressor"
homepage = "https://django-compressor.readthedocs.org/en/latest/"; ];
license = licenses.mit;
maintainers = with maintainers; [ desiderius ]; doCheck = false; # missing package django-sekizai
};
checkInputs = [
beautifulsoup4
brotli
pytestCheckHook
];
DJANGO_SETTINGS_MODULE = "compressor.test_settings";
meta = with 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 ];
};
} }