mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
25 lines
656 B
Nix
25 lines
656 B
Nix
{ stdenv, fetchPypi, buildPythonPackage
|
|
, urllib3, idna, chardet, certifi
|
|
, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "requests";
|
|
version = "2.20.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ea881206e59f41dbd0bd445437d792e43906703fff75ca8ff43ccdb11f33f263";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|