2021-02-22 21:28:39 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, six, httplib2, py, pytestCheckHook, requests, urllib3 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wsgi-intercept";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "1.10.0";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "wsgi_intercept";
|
|
|
|
inherit version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-BX8EWtR8pXkibcliJbfBw6/5VdHs9HczjM1c1SWx3wk=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
checkInputs = [ 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 = "wsgi_intercept installs a WSGI application in place of a real URI for testing";
|
|
|
|
homepage = "https://github.com/cdent/wsgi-intercept";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|