3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/requests/default.nix

25 lines
656 B
Nix
Raw Normal View History

{ stdenv, fetchPypi, buildPythonPackage
, urllib3, idna, chardet, certifi
, pytest }:
buildPythonPackage rec {
pname = "requests";
2018-11-04 10:35:15 +00:00
version = "2.20.0";
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:15 +00:00
sha256 = "99dcfdaaeb17caf6e526f32b6a7b780461512ab3f1d992187801694cba42770c";
};
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;
};
}