blob: 6008b94179fb08c1a5d18a68fed8c8e31abc9e9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, aiohttp
, buildPythonPackage
, fetchPypi
, jinja2
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiohttp-jinja2";
version = "1.5.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-jRSbKlfZH3lLM6OU6lvGa1Z/OMdKWmqUd6/CRQ8QXAE=";
};
propagatedBuildInputs = [
aiohttp
jinja2
];
nativeCheckInputs = [
pytest-aiohttp
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" ""
'';
pytestFlagsArray = [
"-W"
"ignore::DeprecationWarning"
];
pythonImportsCheck = [
"aiohttp_jinja2"
];
# Tests are outdated (1.5)
# pytest.PytestUnhandledCoroutineWarning: async def functions...
doCheck = false;
meta = with lib; {
description = "Jinja2 support for aiohttp";
homepage = "https://github.com/aio-libs/aiohttp_jinja2";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}
|