blob: 9a65c1dbab5df076b418a964ff3b4d0db8b69293 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
# tests
freezegun,
mock,
pytestCheckHook,
sure,
}:
buildPythonPackage rec {
pname = "httpretty";
version = "1.1.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "20de0e5dd5a18292d36d928cc3d6e52f8b2ac73daec40d41eb62dee154933b68";
};
patches = [
# https://github.com/gabrielfalcao/HTTPretty/pull/485
# https://github.com/gabrielfalcao/HTTPretty/pull/485
./urllib-2.3.0-compat.patch
];
build-system = [ setuptools ];
nativeCheckInputs = [
freezegun
mock
pytestCheckHook
sure
];
disabledTestPaths = [
"tests/bugfixes"
"tests/functional"
"tests/pyopenssl"
];
__darwinAllowLocalNetworking = true;
meta = {
homepage = "https://httpretty.readthedocs.org/";
description = "HTTP client request mocking tool";
license = lib.licenses.mit;
};
}
|