Merge pull request #138929 from Luflosi/add-wsgiprox

This commit is contained in:
Sandro 2021-09-22 21:51:36 +02:00 committed by GitHub
commit 45c4f4f25b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, certauth
}:
buildPythonPackage rec {
pname = "wsgiprox";
version = "1.5.2";
src = fetchFromGitHub {
owner = "webrecorder";
repo = "wsgiprox";
# https://github.com/webrecorder/wsgiprox/issues/8
rev = "004870a87959e68ff28ff4362e4f0df28ec22030";
sha256 = "sha256-EquddaNrVceyJHuQMCajKHGZX2Q7ebR0Zhvi2pl2WEw=";
};
propagatedBuildInputs = [
six
certauth
];
pythonImportsCheck = [ "wsgiprox" ];
# See https://github.com/webrecorder/wsgiprox/issues/6
doCheck = false;
meta = with lib; {
description = "Python WSGI Middleware for adding HTTP/S proxy support to any WSGI Application";
homepage = "https://github.com/webrecorder/wsgiprox";
license = licenses.asl20;
maintainers = with maintainers; [ Luflosi ];
};
}

View File

@ -9579,6 +9579,8 @@ in {
wsgi-intercept = callPackage ../development/python-modules/wsgi-intercept { };
wsgiprox = callPackage ../development/python-modules/wsgiprox { };
wsgiproxy2 = callPackage ../development/python-modules/wsgiproxy2 { };
wsgitools = callPackage ../development/python-modules/wsgitools { };