depot/third_party/nixpkgs/pkgs/development/python-modules/django-compressor/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

65 lines
1.4 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, rcssmin
, rjsmin
, django-appconf
, beautifulsoup4
, brotli
, pytestCheckHook
, django-sekizai
, pytest-django
, csscompressor
, calmjs
, jinja2
, python
}:
buildPythonPackage rec {
pname = "django-compressor";
version = "4.4";
format = "setuptools";
src = fetchPypi {
pname = "django_compressor";
inherit version;
hash = "sha256-GwrMnPup9pvDjnxB2psNcKILyVWHtkP/75YJz0YGT2c=";
};
propagatedBuildInputs = [
beautifulsoup4
calmjs
django-appconf
jinja2
rcssmin
rjsmin
];
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; {
description = "Compresses linked and inline JavaScript or CSS into single cached files";
homepage = "https://django-compressor.readthedocs.org/";
changelog = "https://github.com/django-compressor/django-compressor/blob/${version}/docs/changelog.txt";
license = licenses.mit;
maintainers = with maintainers; [ desiderius ];
};
}