depot/third_party/nixpkgs/pkgs/development/python-modules/wsgi-intercept/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

54 lines
978 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, httplib2
, py
, pytestCheckHook
, pythonOlder
, requests
, urllib3
}:
buildPythonPackage rec {
pname = "wsgi-intercept";
version = "1.12.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "wsgi_intercept";
inherit version;
hash = "sha256-StUxEN91fU7qoptH9iKJFpZWIBIOtIe6S4gvdBgN48E=";
};
propagatedBuildInputs = [
six
];
nativeCheckInputs = [
httplib2
py
pytestCheckHook
requests
urllib3
];
disabledTests = [
"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; [ ];
};
}