1{ lib
2, buildPythonPackage
3, fetchPypi
4, six
5, httplib2
6, py
7, pytestCheckHook
8, pythonOlder
9, requests
10, urllib3
11}:
12
13buildPythonPackage rec {
14 pname = "wsgi-intercept";
15 version = "1.12.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 pname = "wsgi_intercept";
22 inherit version;
23 hash = "sha256-StUxEN91fU7qoptH9iKJFpZWIBIOtIe6S4gvdBgN48E=";
24 };
25
26 propagatedBuildInputs = [
27 six
28 ];
29
30 nativeCheckInputs = [
31 httplib2
32 py
33 pytestCheckHook
34 requests
35 urllib3
36 ];
37
38 disabledTests = [
39 "test_http_not_intercepted"
40 "test_https_not_intercepted"
41 "test_https_no_ssl_verification_not_intercepted"
42 ];
43
44 pythonImportsCheck = [
45 "wsgi_intercept"
46 ];
47
48 meta = with lib; {
49 description = "Module that acts as a WSGI application in place of a real URI for testing";
50 homepage = "https://github.com/cdent/wsgi-intercept";
51 license = licenses.mit;
52 maintainers = with maintainers; [ ];
53 };
54}