75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
36 lines
747 B
Nix
36 lines
747 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, gevent
|
|
, certifi
|
|
, six
|
|
, backports_ssl_match_hostname
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geventhttpclient";
|
|
version = "1.4.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3f0ab18d84ef26ba0c9df73ae2a41ba30a46072b447f2e36c740400de4a63d44";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|