depot/third_party/nixpkgs/pkgs/development/python-modules/wsgi-intercept/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
six,
httplib2,
py,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "wsgi-intercept";
version = "1.13.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "wsgi_intercept";
inherit version;
hash = "sha256-daA+HQHdtCAC+1a4Ss0qeo7OJe/dIGREoTqfH7z6k0w=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ six ];
nativeCheckInputs = [
httplib2
py
pytestCheckHook
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 = with lib; {
description = "Module that acts as a WSGI application in place of a real URI for testing";
homepage = "https://github.com/cdent/wsgi-intercept";
license = licenses.mit;
maintainers = with maintainers; [ mikecm ];
};
}