python310Packages.django-compressor: Enable more tests

This commit is contained in:
Jonas Heinrich 2022-08-12 15:54:06 +02:00
parent 3c79393a8f
commit a61134c74c

View file

@ -7,43 +7,52 @@
, beautifulsoup4
, brotli
, pytestCheckHook
, django-sekizai
, pytest-django
, csscompressor
, calmjs
, jinja2
, python
}:
buildPythonPackage rec {
pname = "django-compressor";
version = "4.3.1";
version = "4.4";
format = "setuptools";
src = fetchPypi {
pname = "django_compressor";
inherit version;
hash = "sha256-aIWMDabMCZzCmgIthsO6iu0RTanXCe7OsNe4GBtfiUI=";
hash = "sha256-GwrMnPup9pvDjnxB2psNcKILyVWHtkP/75YJz0YGT2c=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "rcssmin == 1.1.0" "rcssmin>=1.1.0" \
--replace "rjsmin == 1.2.0" "rjsmin>=1.2.0"
'';
propagatedBuildInputs = [
beautifulsoup4
calmjs
django-appconf
jinja2
rcssmin
rjsmin
django-appconf
];
pythonImportsCheck = [
"compressor"
];
doCheck = false; # missing package django-sekizai
nativeCheckInputs = [
checkInputs = [
beautifulsoup4
brotli
csscompressor
django-sekizai
pytestCheckHook
pytest-django
];
# Getting error: compressor.exceptions.OfflineGenerationError: You have
# offline compression enabled but key "..." is missing from offline manifest.
# You may need to run "python manage.py compress"
disabledTestPaths = [
"compressor/tests/test_offline.py"
];
pythonImportsCheck = [ "compressor" ];
DJANGO_SETTINGS_MODULE = "compressor.test_settings";
meta = with lib; {