nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 54 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 six, 6 httplib2, 7 pytestCheckHook, 8 requests, 9 setuptools, 10 urllib3, 11}: 12 13buildPythonPackage rec { 14 pname = "wsgi-intercept"; 15 version = "1.13.1"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "cdent"; 20 repo = "wsgi-intercept"; 21 tag = "v${version}"; 22 hash = "sha256-hs5yB0+eDlh/pNPaqYIU9C+RBpyrdPOAscQGIoqzmvU="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ six ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 httplib2 32 requests 33 urllib3 34 ]; 35 36 disabledTests = [ 37 # Tests require network access 38 "test_urllib3" 39 "test_requests" 40 "test_http_not_intercepted" 41 "test_https_not_intercepted" 42 "test_https_no_ssl_verification_not_intercepted" 43 ]; 44 45 pythonImportsCheck = [ "wsgi_intercept" ]; 46 47 meta = { 48 description = "Module that acts as a WSGI application in place of a real URI for testing"; 49 homepage = "https://github.com/cdent/wsgi-intercept"; 50 changelog = "https://github.com/cdent/wsgi-intercept/releases/tag/v${version}"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ mikecm ]; 53 }; 54}