about summary refs log tree commit diff
path: root/pkgs/development/python-modules/wsgiprox/default.nix
blob: 2fa81bea6ac476dcc7f52b928f90852afca10910 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, six
, certauth
}:

buildPythonPackage rec {
  pname = "wsgiprox";
  version = "1.5.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "webrecorder";
    repo = "wsgiprox";
    # https://github.com/webrecorder/wsgiprox/issues/8
    rev = "004870a87959e68ff28ff4362e4f0df28ec22030";
    hash = "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 ];
  };
}