2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 21:20:40 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, gevent
|
|
|
|
, certifi
|
|
|
|
, six
|
|
|
|
, backports_ssl_match_hostname
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geventhttpclient";
|
2020-07-31 09:56:39 +01:00
|
|
|
version = "1.4.4";
|
2018-10-16 21:20:40 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-31 09:56:39 +01:00
|
|
|
sha256 = "f59e5153f22e4a0be27b48aece8e45e19c1da294f8c49442b1c9e4d152c5c4c3";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|