tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.aioresponses: update test part
Fabian Affolter
5 years ago
4b902164
b8a4d564
+13
-10
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
aioresponses
default.nix
+13
-10
pkgs/development/python-modules/aioresponses/default.nix
···
1
1
{ lib
2
2
+
, aiohttp
3
3
+
, asynctest
2
4
, buildPythonPackage
5
5
+
, ddt
3
6
, fetchPypi
4
4
-
, pythonOlder
5
7
, pbr
6
6
-
, aiohttp
7
7
-
, ddt
8
8
-
, asynctest
9
9
-
, pytest
8
8
+
, pytestCheckHook
9
9
+
, pythonOlder
10
10
}:
11
11
12
12
buildPythonPackage rec {
···
30
30
checkInputs = [
31
31
asynctest
32
32
ddt
33
33
-
pytest
33
33
+
pytestCheckHook
34
34
+
];
35
35
+
36
36
+
disabledTests = [
37
37
+
# Skip a test which makes requests to httpbin.org
38
38
+
"test_address_as_instance_of_url_combined_with_pass_through"
39
39
+
"test_pass_through_with_origin_params"
34
40
];
35
41
36
36
-
# Skip a test which makes requests to httpbin.org
37
37
-
checkPhase = ''
38
38
-
pytest -k "not (test_address_as_instance_of_url_combined_with_pass_through or test_pass_through_with_origin_params)"
39
39
-
'';
42
42
+
pythonImportsCheck = [ "aioresponses" ];
40
43
41
44
meta = {
42
45
description = "A helper to mock/fake web requests in python aiohttp package";