Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pytest 5, gevent 6, certifi 7, six 8, backports_ssl_match_hostname 9}: 10 11buildPythonPackage rec { 12 pname = "geventhttpclient"; 13 version = "1.3.1"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "bd87af8854f5fb05738916c8973671f7035568aec69b7c842887d6faf9c0a01d"; 18 }; 19 20 buildInputs = [ pytest ]; 21 propagatedBuildInputs = [ gevent certifi six backports_ssl_match_hostname ]; 22 23 # Several tests fail that require network 24 doCheck = false; 25 checkPhase = '' 26 py.test $out 27 ''; 28 29 meta = with stdenv.lib; { 30 homepage = https://github.com/gwik/geventhttpclient; 31 description = "HTTP client library for gevent"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ koral ]; 34 }; 35 36}