1{ stdenv, fetchPypi, buildPythonPackage 2, urllib3, idna, chardet, certifi 3, pytest }: 4 5buildPythonPackage rec { 6 pname = "requests"; 7 version = "2.19.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "ec22d826a36ed72a7358ff3fe56cbd4ba69dd7a6718ffd450ff0e9df7a47ce6a"; 12 }; 13 14 outputs = [ "out" "dev" ]; 15 16 nativeBuildInputs = [ pytest ]; 17 propagatedBuildInputs = [ urllib3 idna chardet certifi ]; 18 # sadly, tests require networking 19 doCheck = false; 20 21 meta = with stdenv.lib; { 22 description = "An Apache2 licensed HTTP library, written in Python, for human beings"; 23 homepage = http://docs.python-requests.org/en/latest/; 24 license = licenses.asl20; 25 }; 26}