python311Packages.django-compressor: convert to pep517 build

and relax dependeny constraints. Required because setuptools pep517
builds check them transitively.
This commit is contained in:
Martin Weinelt 2024-03-14 01:36:05 +01:00
parent 1e89c24853
commit 11d8179725
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,24 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonRelaxDepsHook
# build-system
, setuptools
# dependencies
, calmjs
, django-appconf
, jinja2
, rcssmin
, rjsmin
, django-appconf
# tests
, beautifulsoup4
, brotli
, pytestCheckHook
, django-sekizai
, pytest-django
, csscompressor
, calmjs
, jinja2
, python
, django-sekizai
, pytestCheckHook
, pytest-django
}:
buildPythonPackage rec {
pname = "django-compressor";
version = "4.4";
format = "setuptools";
pyproject = true;
src = fetchPypi {
pname = "django_compressor";
@ -26,7 +34,17 @@ buildPythonPackage rec {
hash = "sha256-GwrMnPup9pvDjnxB2psNcKILyVWHtkP/75YJz0YGT2c=";
};
propagatedBuildInputs = [
build-system = [
setuptools
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"rcssmin"
"rjsmin"
];
dependencies = [
beautifulsoup4
calmjs
django-appconf
@ -35,7 +53,9 @@ buildPythonPackage rec {
rjsmin
];
checkInputs = [
env.DJANGO_SETTINGS_MODULE = "compressor.test_settings";
nativeCheckInputs = [
beautifulsoup4
brotli
csscompressor
@ -53,8 +73,6 @@ buildPythonPackage rec {
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/";