forked from mirrors/nixpkgs
25 lines
658 B
Nix
25 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;
|
|
};
|
|
}
|