blob: da85b6de1d2922ef72bfc873ace6d725980cecb6 (
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
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
six,
httplib2,
pytestCheckHook,
requests,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "wsgi-intercept";
version = "1.13.1";
pyproject = true;
src = fetchFromGitHub {
owner = "cdent";
repo = "wsgi-intercept";
tag = "v${version}";
hash = "sha256-hs5yB0+eDlh/pNPaqYIU9C+RBpyrdPOAscQGIoqzmvU=";
};
build-system = [ setuptools ];
dependencies = [ six ];
nativeCheckInputs = [
pytestCheckHook
httplib2
requests
urllib3
];
disabledTests = [
# Tests require network access
"test_urllib3"
"test_requests"
"test_http_not_intercepted"
"test_https_not_intercepted"
"test_https_no_ssl_verification_not_intercepted"
];
pythonImportsCheck = [ "wsgi_intercept" ];
meta = {
description = "Module that acts as a WSGI application in place of a real URI for testing";
homepage = "https://github.com/cdent/wsgi-intercept";
changelog = "https://github.com/cdent/wsgi-intercept/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mikecm ];
};
}
|