blob: 5b102d463171dccb56135e93d90d4243ec392b1e (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
# build-system
pbr,
setuptools,
# dependencies
aiohttp,
# tests
ddt,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aioresponses";
version = "0.7.6";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-95XZ29otYXdIQOfjL1Nm9FdS0a3Bt0yTYq/QFylsfuE=";
};
nativeBuildInputs = [
pbr
setuptools
];
propagatedBuildInputs = [ aiohttp ];
pythonImportsCheck = [ "aioresponses" ];
nativeCheckInputs = [
ddt
pytestCheckHook
];
disabledTests = [
# Skip a test which makes requests to httpbin.org
"test_address_as_instance_of_url_combined_with_pass_through"
"test_pass_through_with_origin_params"
];
meta = {
description = "Helper to mock/fake web requests in python aiohttp package";
homepage = "https://github.com/pnuckowski/aioresponses";
license = lib.licenses.mit;
};
}
|