2017-09-05 09:16:41 +00:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
|
|
|
, urllib3, idna, chardet, certifi
|
|
|
|
, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests";
|
2020-08-16 17:31:14 +00:00
|
|
|
version = "2.24.0";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 17:31:14 +00:00
|
|
|
sha256 = "b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b";
|
2017-09-05 09:16:41 +00: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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://docs.python-requests.org/en/latest/";
|
2017-09-05 09:16:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|