python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / python-modules / aiohttp-jinja2 / default.nix
blob3e3148fce7c224015c3bc2ce3c4c2a4f613aaee5
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";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-fDul6sBgtpH05QU0ry15/KKnVxLr0rJeb8sSlYWfkQs=";
21   };
23   propagatedBuildInputs = [
24     aiohttp
25     jinja2
26   ];
28   checkInputs = [
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; [ peterhoeg ];
56   };