mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
python310Packages.django-compressor: Enable more tests
This commit is contained in:
parent
3c79393a8f
commit
a61134c74c
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue