Merge pull request #177096 from SuperSandro2000/python310Packages.requests

python310Packages.requests: 2.27.1 -> 2.28.0
This commit is contained in:
Sandro 2022-06-17 01:37:48 +02:00 committed by GitHub
commit 650410ef8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,5 @@
{ lib { lib
, stdenv , stdenv
, pythonOlder
, brotli
, brotlicffi , brotlicffi
, buildPythonPackage , buildPythonPackage
, certifi , certifi
@ -9,24 +7,22 @@
, charset-normalizer , charset-normalizer
, fetchPypi , fetchPypi
, idna , idna
, isPy27
, isPy3k
, pysocks , pysocks
, pytest-mock , pytest-mock
, pytest-xdist , pytest-xdist
, pytestCheckHook , pytestCheckHook
, pythonOlder
, urllib3 , urllib3
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "requests"; pname = "requests";
version = "2.27.1"; version = "2.28.0";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-aNfFb9WomZiHco7zBKbRLtx7508c+kdxT8i0FFJcmmE="; hash = "sha256-1WhyOn69JYddjR6vXfoGjNL8gZSy5IPXsffIGRjb7Gs=";
}; };
patches = [ patches = [
@ -59,9 +55,6 @@ buildPythonPackage rec {
] ]
++ passthru.optional-dependencies.socks; ++ passthru.optional-dependencies.socks;
# AttributeError: 'KeywordMapping' object has no attribute 'get'
doCheck = !isPy27;
disabledTests = [ disabledTests = [
# Disable tests that require network access and use httpbin # Disable tests that require network access and use httpbin
"requests.api.request" "requests.api.request"