Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / aiohttp-jinja2 / default.nix
blob6008b94179fb08c1a5d18a68fed8c8e31abc9e9c
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchPypi
5 , jinja2
6 , pytest-aiohttp
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "aiohttp-jinja2";
13   version = "1.5.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-jRSbKlfZH3lLM6OU6lvGa1Z/OMdKWmqUd6/CRQ8QXAE=";
21   };
23   propagatedBuildInputs = [
24     aiohttp
25     jinja2
26   ];
28   nativeCheckInputs = [
29     pytest-aiohttp
30     pytestCheckHook
31   ];
33   postPatch = ''
34     substituteInPlace setup.cfg \
35       --replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" ""
36   '';
38   pytestFlagsArray = [
39     "-W"
40     "ignore::DeprecationWarning"
41   ];
43   pythonImportsCheck = [
44     "aiohttp_jinja2"
45   ];
47   # Tests are outdated (1.5)
48   # pytest.PytestUnhandledCoroutineWarning: async def functions...
49   doCheck = false;
51   meta = with lib; {
52     description = "Jinja2 support for aiohttp";
53     homepage = "https://github.com/aio-libs/aiohttp_jinja2";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ ];
56   };