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