Merge pull request #113515 from fabaff/bump-requests
python3Packages.requests: 2.25.0 -> 2.25.1
This commit is contained in:
commit
02422c4d16
1 changed files with 45 additions and 10 deletions
|
@ -1,24 +1,59 @@
|
|||
{ lib, fetchPypi, buildPythonPackage
|
||||
, urllib3, idna, chardet, certifi
|
||||
, pytest }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, certifi
|
||||
, chardet
|
||||
, fetchPypi
|
||||
, idna
|
||||
, pytest-mock
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, urllib3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "requests";
|
||||
version = "2.25.0";
|
||||
version = "2.25.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1y6mb8c0ipd64d5axq2p368yxndp3f966hmabjka2q2a5y9hn6kz";
|
||||
sha256 = "sha256-J5c91KkEpPE7JjoZyGbBO5KjntHJZGVfAl8/jT11uAQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ urllib3 idna chardet certifi ];
|
||||
# sadly, tests require networking
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [
|
||||
certifi
|
||||
chardet
|
||||
idna
|
||||
urllib3
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-mock
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Disable tests that require network access and use httpbin
|
||||
"requests.api.request"
|
||||
"requests.models.PreparedRequest"
|
||||
"requests.sessions.Session"
|
||||
"requests"
|
||||
"test_redirecting_to_bad_url"
|
||||
"test_requests_are_updated_each_time"
|
||||
"test_should_bypass_proxies_pass_only_hostname"
|
||||
"test_urllib3_pool_connection_closed"
|
||||
"test_urllib3_retries"
|
||||
"test_use_proxy_from_environment"
|
||||
"TestRequests"
|
||||
"TestTimeout"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "requests" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An Apache2 licensed HTTP library, written in Python, for human beings";
|
||||
description = "Simple HTTP library for Python";
|
||||
homepage = "http://docs.python-requests.org/en/latest/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue