lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #186298 from onny/compressor

python3Packages.django-compressor: Enable more tests

authored by

Sandro and committed by
GitHub
f881e0a2 f234c1ef

+148 -8
+28
pkgs/development/python-modules/calmjs-types/default.nix
··· 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , pytestCheckHook 5 + }: 6 + 7 + buildPythonPackage rec { 8 + pname = "calmjs-types"; 9 + version = "1.0.1"; 10 + 11 + src = fetchPypi { 12 + pname = "calmjs.types"; 13 + inherit version; 14 + sha256 = "sha256-EGWYv9mx3RPqs9dnB5t3Bu3hiujL2y/XxyMP7JkjjAQ="; 15 + extension = "zip"; 16 + }; 17 + 18 + checkInputs = [ pytestCheckHook ]; 19 + 20 + pythonImportsCheck = [ "calmjs.types" ]; 21 + 22 + meta = with lib; { 23 + description = "Types for the calmjs framework"; 24 + homepage = "https://github.com/calmjs/calmjs.types"; 25 + license = licenses.mit; 26 + maintainers = with maintainers; [ onny ]; 27 + }; 28 + }
+54
pkgs/development/python-modules/calmjs/default.nix
··· 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , calmjs-types 5 + , calmjs-parse 6 + , pytestCheckHook 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "calmjs"; 11 + version = "3.4.4"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "sha256-73NQiY1RMdBrMIlm/VTvHY4dCHL1pQoj6a48CWRos3o="; 16 + extension = "zip"; 17 + }; 18 + 19 + propagatedBuildInputs = [ 20 + calmjs-parse 21 + calmjs-types 22 + ]; 23 + 24 + checkInputs = [ 25 + pytestCheckHook 26 + ]; 27 + 28 + # ModuleNotFoundError: No module named 'calmjs.types' 29 + # Not yet clear how to run these tests correctly 30 + # https://github.com/calmjs/calmjs/issues/63 31 + # https://github.com/NixOS/nixpkgs/pull/186298 32 + disabledTestPaths = [ 33 + "src/calmjs/tests/test_dist.py" 34 + "src/calmjs/tests/test_testing.py" 35 + "src/calmjs/tests/test_artifact.py" 36 + "src/calmjs/tests/test_interrogate.py" 37 + "src/calmjs/tests/test_loaderplugin.py" 38 + "src/calmjs/tests/test_npm.py" 39 + "src/calmjs/tests/test_runtime.py" 40 + "src/calmjs/tests/test_toolchain.py" 41 + "src/calmjs/tests/test_vlqsm.py" 42 + "src/calmjs/tests/test_yarn.py" 43 + "src/calmjs/tests/test_command.py" 44 + ]; 45 + 46 + pythonImportsCheck = [ "calmjs" ]; 47 + 48 + meta = with lib; { 49 + description = "Framework for building toolchains and utilities for working with the Node.js ecosystem"; 50 + homepage = "https://github.com/calmjs/calmjs"; 51 + license = licenses.gpl2; 52 + maintainers = with maintainers; [ onny ]; 53 + }; 54 + }
+23 -8
pkgs/development/python-modules/django-compressor/default.nix
··· 7 7 , beautifulsoup4 8 8 , brotli 9 9 , pytestCheckHook 10 + , django-sekizai 11 + , pytest-django 12 + , csscompressor 13 + , calmjs 14 + , jinja2 15 + , python 10 16 }: 11 17 12 18 buildPythonPackage rec { ··· 21 27 }; 22 28 23 29 propagatedBuildInputs = [ 30 + beautifulsoup4 31 + calmjs 32 + django-appconf 33 + jinja2 24 34 rcssmin 25 35 rjsmin 26 - django-appconf 27 36 ]; 28 37 29 - pythonImportsCheck = [ 30 - "compressor" 31 - ]; 32 - 33 - doCheck = false; # missing package django-sekizai 34 - 35 - nativeCheckInputs = [ 38 + checkInputs = [ 36 39 beautifulsoup4 37 40 brotli 41 + csscompressor 42 + django-sekizai 38 43 pytestCheckHook 44 + pytest-django 39 45 ]; 46 + 47 + # Getting error: compressor.exceptions.OfflineGenerationError: You have 48 + # offline compression enabled but key "..." is missing from offline manifest. 49 + # You may need to run "python manage.py compress" 50 + disabledTestPaths = [ 51 + "compressor/tests/test_offline.py" 52 + ]; 53 + 54 + pythonImportsCheck = [ "compressor" ]; 40 55 41 56 DJANGO_SETTINGS_MODULE = "compressor.test_settings"; 42 57
+37
pkgs/development/python-modules/django-sekizai/default.nix
··· 1 + { lib 2 + , fetchPypi 3 + , buildPythonPackage 4 + , django_classytags 5 + , pytestCheckHook 6 + , pytest-django 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "django-sekizai"; 11 + version = "4.1.0"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + sha256 = "sha256-Kso2y64LXAzv7ZVlQW7EQjNXZ/sxRb/xHlhiL8ZTza0="; 16 + }; 17 + 18 + propagatedBuildInputs = [ 19 + django_classytags 20 + ]; 21 + 22 + checkInputs = [ 23 + pytestCheckHook 24 + pytest-django 25 + ]; 26 + 27 + pythonImportsCheck = [ "sekizai" ]; 28 + 29 + DJANGO_SETTINGS_MODULE = "tests.settings"; 30 + 31 + meta = with lib; { 32 + description = "Define placeholders where your blocks get rendered and append to those blocks"; 33 + homepage = "https://github.com/django-cms/django-sekizai"; 34 + license = licenses.bsd3; 35 + maintainers = with maintainers; [ onny ]; 36 + }; 37 + }
+6
pkgs/top-level/python-packages.nix
··· 1637 1637 1638 1638 callee = callPackage ../development/python-modules/callee { }; 1639 1639 1640 + calmjs = callPackage ../development/python-modules/calmjs { }; 1641 + 1640 1642 calmjs-parse = callPackage ../development/python-modules/calmjs-parse { }; 1643 + 1644 + calmjs-types = callPackage ../development/python-modules/calmjs-types { }; 1641 1645 1642 1646 calysto = callPackage ../development/python-modules/calysto { }; 1643 1647 ··· 2874 2878 djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { }; 2875 2879 2876 2880 django-reversion = callPackage ../development/python-modules/django-reversion { }; 2881 + 2882 + django-sekizai = callPackage ../development/python-modules/django-sekizai { }; 2877 2883 2878 2884 django-sesame = callPackage ../development/python-modules/django-sesame { }; 2879 2885