python.pkgs.requests: 2.13.0 -> 2.18.4
This commit is contained in:
parent
7a73f298d9
commit
ffb043b769
25
pkgs/development/python-modules/requests/default.nix
Normal file
25
pkgs/development/python-modules/requests/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage
|
||||
, urllib3, idna, chardet, certifi
|
||||
, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "requests";
|
||||
version = "2.18.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zi3v9nsmv9j27d0c0m1dvqyvaxz53g8m0aa1h3qanxs4irkwi4w";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -19269,25 +19269,7 @@ in {
|
||||
requests2 = throw "requests2 has been deprecated. Use requests instead.";
|
||||
|
||||
# use requests, not requests_2
|
||||
requests = buildPythonPackage rec {
|
||||
name = "requests-${version}";
|
||||
version = "2.13.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/r/requests/${name}.tar.gz";
|
||||
sha256 = "5722cd09762faa01276230270ff16af7acf7c5c45d623868d9ba116f15791ce8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ self.pytest ];
|
||||
# sadly, tests require networking
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "An Apache2 licensed HTTP library, written in Python, for human beings";
|
||||
homepage = http://docs.python-requests.org/en/latest/;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
};
|
||||
requests = callPackage ../development/python-modules/requests { };
|
||||
|
||||
requests_download = buildPythonPackage rec {
|
||||
pname = "requests_download";
|
||||
|
Loading…
Reference in New Issue
Block a user