2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2017-09-05 10:16:41 +01:00
|
|
|
, urllib3, idna, chardet, certifi
|
|
|
|
, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests";
|
2020-11-16 22:28:37 +00:00
|
|
|
version = "2.25.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-16 22:28:37 +00:00
|
|
|
sha256 = "1y6mb8c0ipd64d5axq2p368yxndp3f966hmabjka2q2a5y9hn6kz";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ urllib3 idna chardet certifi ];
|
|
|
|
# sadly, tests require networking
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-05 10:16:41 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|