2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage
|
|
|
|
, urllib3, idna, chardet, certifi
|
|
|
|
, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests";
|
2020-05-09 10:57:47 +01:00
|
|
|
version = "2.23.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-01 09:59:41 +01:00
|
|
|
sha256 = "1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://docs.python-requests.org/en/latest/";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|