summary refs log tree commit diff
path: root/pkgs/development/python-modules/geventhttpclient/default.nix
blob: fafbef12bd3a61b4774e3e237a4da71b8ea7650e (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
{ lib, stdenv
, buildPythonPackage
, fetchPypi
, pytest
, gevent
, certifi
, six
, backports_ssl_match_hostname
}:

buildPythonPackage rec {
  pname = "geventhttpclient";
  version = "1.4.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "f59e5153f22e4a0be27b48aece8e45e19c1da294f8c49442b1c9e4d152c5c4c3";
  };

  buildInputs = [ pytest ];
  propagatedBuildInputs = [ gevent certifi six backports_ssl_match_hostname ];

  # Several tests fail that require network
  doCheck = false;
  checkPhase = ''
    py.test $out
  '';

  meta = with lib; {
    homepage = "https://github.com/gwik/geventhttpclient";
    description = "HTTP client library for gevent";
    license = licenses.mit;
    maintainers = with maintainers; [ koral ];
  };

}