1{ lib 2, buildPythonPackage 3, fetchPypi 4, rcssmin 5, rjsmin 6, django-appconf 7, beautifulsoup4 8, brotli 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "django-compressor"; 14 version = "4.1"; 15 format = "setuptools"; 16 17 src = fetchPypi { 18 pname = "django_compressor"; 19 inherit version; 20 hash = "sha256-js5iHSqY9sZjVIDLizcB24kKmfeT+VyiDLAKvBlNMx0="; 21 }; 22 23 postPatch = '' 24 substituteInPlace setup.py \ 25 --replace "rcssmin == 1.1.0" "rcssmin>=1.1.0" \ 26 --replace "rjsmin == 1.2.0" "rjsmin>=1.2.0" 27 ''; 28 29 propagatedBuildInputs = [ 30 rcssmin 31 rjsmin 32 django-appconf 33 ]; 34 35 pythonImportsCheck = [ 36 "compressor" 37 ]; 38 39 doCheck = false; # missing package django-sekizai 40 41 checkInputs = [ 42 beautifulsoup4 43 brotli 44 pytestCheckHook 45 ]; 46 47 DJANGO_SETTINGS_MODULE = "compressor.test_settings"; 48 49 meta = with lib; { 50 description = "Compresses linked and inline JavaScript or CSS into single cached files"; 51 homepage = "https://django-compressor.readthedocs.org/en/latest/"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ desiderius ]; 54 }; 55}