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

27 lines
686 B
Nix
Raw Normal View History

{ stdenv, fetchPypi, buildPythonPackage
, urllib3, idna, chardet, certifi
, pytest }:
buildPythonPackage rec {
pname = "requests";
2018-06-21 06:37:18 +01:00
version = "2.19.1";
src = fetchPypi {
inherit pname version;
2018-06-21 06:37:18 +01:00
sha256 = "ec22d826a36ed72a7358ff3fe56cbd4ba69dd7a6718ffd450ff0e9df7a47ce6a";
};
2017-09-27 10:25:50 +01:00
outputs = [ "out" "dev" ];
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;
};
}