nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 38 lines 806 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, gevent 6, certifi 7, six 8, backports_ssl_match_hostname 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "geventhttpclient"; 14 version = "1.4.5"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "3f0ab18d84ef26ba0c9df73ae2a41ba30a46072b447f2e36c740400de4a63d44"; 19 }; 20 21 buildInputs = [ pytest ]; 22 propagatedBuildInputs = [ gevent certifi six ] 23 ++ lib.optionals (pythonOlder "3.7") [ backports_ssl_match_hostname ]; 24 25 # Several tests fail that require network 26 doCheck = false; 27 checkPhase = '' 28 py.test $out 29 ''; 30 31 meta = with lib; { 32 homepage = "https://github.com/gwik/geventhttpclient"; 33 description = "HTTP client library for gevent"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ koral ]; 36 }; 37 38}