tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.aiohttp-jinja2: disable tests
Fabian Affolter
3 years ago
2dd1fdec
55ce48fc
+37
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
aiohttp-jinja2
default.nix
+37
-6
pkgs/development/python-modules/aiohttp-jinja2/default.nix
···
1
1
-
{ lib, buildPythonPackage, fetchPypi, aiohttp, jinja2, pytest, pytest-aiohttp, pytest-cov }:
1
1
+
{ lib
2
2
+
, aiohttp
3
3
+
, buildPythonPackage
4
4
+
, fetchPypi
5
5
+
, jinja2
6
6
+
, pytest-aiohttp
7
7
+
, pytestCheckHook
8
8
+
, pythonOlder
9
9
+
}:
2
10
3
11
buildPythonPackage rec {
4
12
pname = "aiohttp-jinja2";
5
13
version = "1.5";
14
14
+
format = "setuptools";
15
15
+
16
16
+
disabled = pythonOlder "3.7";
6
17
7
18
src = fetchPypi {
8
19
inherit pname version;
9
9
-
sha256 = "7c3ba5eac060b691f4e50534af2d79fca2a75712ebd2b25e6fcb1295859f910b";
20
20
+
hash = "sha256-fDul6sBgtpH05QU0ry15/KKnVxLr0rJeb8sSlYWfkQs=";
10
21
};
11
22
12
12
-
propagatedBuildInputs = [ aiohttp jinja2 ];
23
23
+
propagatedBuildInputs = [
24
24
+
aiohttp
25
25
+
jinja2
26
26
+
];
13
27
14
14
-
checkInputs = [ pytest pytest-aiohttp pytest-cov ];
28
28
+
checkInputs = [
29
29
+
pytest-aiohttp
30
30
+
pytestCheckHook
31
31
+
];
15
32
16
16
-
checkPhase = ''
17
17
-
pytest -W ignore::DeprecationWarning
33
33
+
postPatch = ''
34
34
+
substituteInPlace setup.cfg \
35
35
+
--replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" ""
18
36
'';
37
37
+
38
38
+
pytestFlagsArray = [
39
39
+
"-W"
40
40
+
"ignore::DeprecationWarning"
41
41
+
];
42
42
+
43
43
+
pythonImportsCheck = [
44
44
+
"aiohttp_jinja2"
45
45
+
];
46
46
+
47
47
+
# Tests are outdated (1.5)
48
48
+
# pytest.PytestUnhandledCoroutineWarning: async def functions...
49
49
+
doCheck = false;
19
50
20
51
meta = with lib; {
21
52
description = "Jinja2 support for aiohttp";