2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, urllib3, idna, chardet, certifi
|
|
|
|
, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests";
|
2020-11-21 19:51:51 +00:00
|
|
|
version = "2.25.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-21 19:51:51 +00:00
|
|
|
sha256 = "1y6mb8c0ipd64d5axq2p368yxndp3f966hmabjka2q2a5y9hn6kz";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ urllib3 idna chardet certifi ];
|
|
|
|
# sadly, tests require networking
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An Apache2 licensed HTTP library, written in Python, for human beings";
|
|
|
|
homepage = "http://docs.python-requests.org/en/latest/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|