python310Packages.aiohttp-jinja2: disable tests

+37 -6
+37 -6
pkgs/development/python-modules/aiohttp-jinja2/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, aiohttp, jinja2, pytest, pytest-aiohttp, pytest-cov }: 1 + { lib 2 + , aiohttp 3 + , buildPythonPackage 4 + , fetchPypi 5 + , jinja2 6 + , pytest-aiohttp 7 + , pytestCheckHook 8 + , pythonOlder 9 + }: 2 10 3 11 buildPythonPackage rec { 4 12 pname = "aiohttp-jinja2"; 5 13 version = "1.5"; 14 + format = "setuptools"; 15 + 16 + disabled = pythonOlder "3.7"; 6 17 7 18 src = fetchPypi { 8 19 inherit pname version; 9 - sha256 = "7c3ba5eac060b691f4e50534af2d79fca2a75712ebd2b25e6fcb1295859f910b"; 20 + hash = "sha256-fDul6sBgtpH05QU0ry15/KKnVxLr0rJeb8sSlYWfkQs="; 10 21 }; 11 22 12 - propagatedBuildInputs = [ aiohttp jinja2 ]; 23 + propagatedBuildInputs = [ 24 + aiohttp 25 + jinja2 26 + ]; 13 27 14 - checkInputs = [ pytest pytest-aiohttp pytest-cov ]; 28 + checkInputs = [ 29 + pytest-aiohttp 30 + pytestCheckHook 31 + ]; 15 32 16 - checkPhase = '' 17 - pytest -W ignore::DeprecationWarning 33 + postPatch = '' 34 + substituteInPlace setup.cfg \ 35 + --replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" "" 18 36 ''; 37 + 38 + pytestFlagsArray = [ 39 + "-W" 40 + "ignore::DeprecationWarning" 41 + ]; 42 + 43 + pythonImportsCheck = [ 44 + "aiohttp_jinja2" 45 + ]; 46 + 47 + # Tests are outdated (1.5) 48 + # pytest.PytestUnhandledCoroutineWarning: async def functions... 49 + doCheck = false; 19 50 20 51 meta = with lib; { 21 52 description = "Jinja2 support for aiohttp";