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
-
{ lib, buildPythonPackage, fetchPypi, aiohttp, jinja2, pytest, pytest-aiohttp, pytest-cov }:
0
0
0
0
0
0
0
0
2
3
buildPythonPackage rec {
4
pname = "aiohttp-jinja2";
5
version = "1.5";
0
0
0
6
7
src = fetchPypi {
8
inherit pname version;
9
-
sha256 = "7c3ba5eac060b691f4e50534af2d79fca2a75712ebd2b25e6fcb1295859f910b";
10
};
11
12
-
propagatedBuildInputs = [ aiohttp jinja2 ];
0
0
0
13
14
-
checkInputs = [ pytest pytest-aiohttp pytest-cov ];
0
0
0
15
16
-
checkPhase = ''
17
-
pytest -W ignore::DeprecationWarning
0
18
'';
0
0
0
0
0
0
0
0
0
0
0
0
0
19
20
meta = with lib; {
21
description = "Jinja2 support for aiohttp";
···
1
+
{ lib
2
+
, aiohttp
3
+
, buildPythonPackage
4
+
, fetchPypi
5
+
, jinja2
6
+
, pytest-aiohttp
7
+
, pytestCheckHook
8
+
, pythonOlder
9
+
}:
10
11
buildPythonPackage rec {
12
pname = "aiohttp-jinja2";
13
version = "1.5";
14
+
format = "setuptools";
15
+
16
+
disabled = pythonOlder "3.7";
17
18
src = fetchPypi {
19
inherit pname version;
20
+
hash = "sha256-fDul6sBgtpH05QU0ry15/KKnVxLr0rJeb8sSlYWfkQs=";
21
};
22
23
+
propagatedBuildInputs = [
24
+
aiohttp
25
+
jinja2
26
+
];
27
28
+
checkInputs = [
29
+
pytest-aiohttp
30
+
pytestCheckHook
31
+
];
32
33
+
postPatch = ''
34
+
substituteInPlace setup.cfg \
35
+
--replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" ""
36
'';
37
+
38
+
pytestFlagsArray = [
39
+
"-W"
40
+
"ignore::DeprecationWarning"
41
+
];
42
+
43
+
pythonImportsCheck = [
44
+
"aiohttp_jinja2"
45
+
];
46
+
47
+
# Tests are outdated (1.5)
48
+
# pytest.PytestUnhandledCoroutineWarning: async def functions...
49
+
doCheck = false;
50
51
meta = with lib; {
52
description = "Jinja2 support for aiohttp";