nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 81 lines 1.6 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 django, 11 django-appconf, 12 rcssmin, 13 rjsmin, 14 15 # tests 16 beautifulsoup4, 17 brotli, 18 calmjs, 19 csscompressor, 20 django-sekizai, 21 jinja2, 22 pytestCheckHook, 23 pytest-django, 24 25}: 26 27buildPythonPackage rec { 28 pname = "django-compressor"; 29 version = "4.6"; 30 pyproject = true; 31 32 src = fetchFromGitHub { 33 owner = "django-compressor"; 34 repo = "django-compressor"; 35 tag = version; 36 hash = "sha256-ymht/nl3UUFXLc54aqDADXArVG6jUNQppBJCNKp2P68="; 37 }; 38 39 build-system = [ 40 setuptools 41 ]; 42 43 dependencies = [ 44 django 45 django-appconf 46 rcssmin 47 rjsmin 48 ]; 49 50 env.DJANGO_SETTINGS_MODULE = "compressor.test_settings"; 51 52 nativeCheckInputs = [ 53 beautifulsoup4 54 brotli 55 calmjs 56 csscompressor 57 django-sekizai 58 jinja2 59 pytestCheckHook 60 pytest-django 61 ]; 62 63 # Getting error: compressor.exceptions.OfflineGenerationError: You have 64 # offline compression enabled but key "..." is missing from offline manifest. 65 # You may need to run "python manage.py compress" 66 disabledTestPaths = [ "compressor/tests/test_offline.py" ]; 67 68 disabledTests = [ 69 # we set mtime to 1980-01-02 70 "test_css_mtimes" 71 ]; 72 73 pythonImportsCheck = [ "compressor" ]; 74 75 meta = { 76 description = "Compresses linked and inline JavaScript or CSS into single cached files"; 77 homepage = "https://django-compressor.readthedocs.org/"; 78 changelog = "https://github.com/django-compressor/django-compressor/blob/${version}/docs/changelog.txt"; 79 license = lib.licenses.mit; 80 }; 81}