2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
|
|
|
, urllib3, idna, chardet, certifi
|
|
|
|
, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests";
|
2018-06-12 17:47:06 +01:00
|
|
|
version = "2.19.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 17:47:06 +01:00
|
|
|
sha256 = "cc408268d0e21589bcc2b2c248e42932b8c4d112f499c12c92e99e2178a6134c";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2017-09-27 10:25:50 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
nativeBuildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ urllib3 idna chardet certifi ];
|
|
|
|
# sadly, tests require networking
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An Apache2 licensed HTTP library, written in Python, for human beings";
|
|
|
|
homepage = http://docs.python-requests.org/en/latest/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|