diff options
Diffstat (limited to 'pkgs/development/python-modules/aiohttp-jinja2/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aiohttp-jinja2/default.nix | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/aiohttp-jinja2/default.nix b/pkgs/development/python-modules/aiohttp-jinja2/default.nix index 8e78784457ca4..490dea94e0379 100644 --- a/pkgs/development/python-modules/aiohttp-jinja2/default.nix +++ b/pkgs/development/python-modules/aiohttp-jinja2/default.nix @@ -1,17 +1,19 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, jinja2 -, pytest-aiohttp -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + jinja2, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "aiohttp-jinja2"; version = "1.6"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -20,7 +22,9 @@ buildPythonPackage rec { hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ aiohttp jinja2 ]; @@ -31,8 +35,8 @@ buildPythonPackage rec { ]; postPatch = '' - substituteInPlace setup.cfg \ - --replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" "" + substituteInPlace pytest.ini \ + --replace-fail "--cov=aiohttp_jinja2/ --cov=tests/ --cov-report term" "" ''; pytestFlagsArray = [ @@ -40,13 +44,7 @@ buildPythonPackage rec { "ignore::DeprecationWarning" ]; - pythonImportsCheck = [ - "aiohttp_jinja2" - ]; - - # Tests are outdated (1.5) - # pytest.PytestUnhandledCoroutineWarning: async def functions... - doCheck = false; + pythonImportsCheck = [ "aiohttp_jinja2" ]; meta = with lib; { description = "Jinja2 support for aiohttp"; |