2018-10-16 21:20:40 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, gevent
|
|
|
|
, certifi
|
|
|
|
, six
|
|
|
|
, backports_ssl_match_hostname
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geventhttpclient";
|
2020-06-06 07:47:08 +01:00
|
|
|
version = "1.4.2";
|
2018-10-16 21:20:40 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:08 +01:00
|
|
|
sha256 = "967b11c4a37032f98c08f58176e4ac8de10473ab0c1f617acb8202d44b97fe21";
|
2018-10-16 21:20:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ gevent certifi six backports_ssl_match_hostname ];
|
|
|
|
|
|
|
|
# Several tests fail that require network
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
|
|
py.test $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gwik/geventhttpclient";
|
2018-10-16 21:20:40 +01:00
|
|
|
description = "HTTP client library for gevent";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|