1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, webob
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "wsgiproxy2";
10 version = "0.5.1";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "gawel";
17 repo = "WSGIProxy2";
18 rev = version;
19 hash = "sha256-ouofw3cBQzBwSh3Pdtdl7KI2pg/T/z3qoh8zoeiKiSs=";
20 };
21
22 propagatedBuildInputs = [
23 webob
24 ];
25
26 # Circular dependency on webtest
27 doCheck = false;
28
29 pythonImportsCheck = [
30 "wsgiproxy"
31 ];
32
33 meta = with lib; {
34 description = "HTTP proxying tools for WSGI apps";
35 homepage = "https://wsgiproxy2.readthedocs.io/";
36 license = licenses.mit;
37 maintainers = with maintainers; [ domenkozar ];
38 };
39}