8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
24 lines
658 B
Nix
24 lines
658 B
Nix
{ stdenv, fetchPypi, buildPythonPackage
|
|
, urllib3, idna, chardet, certifi
|
|
, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests";
|
|
version = "2.22.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|