python3Packages.requests: 2.25.1 -> 2.26.0

This commit is contained in:
Fabian Affolter
2021-08-13 00:01:24 +02:00
parent 9c5577eae4
commit 9e69f1415e
@@ -1,7 +1,9 @@
{ lib
, brotlicffi
, buildPythonPackage
, certifi
, chardet
, charset-normalizer
, fetchPypi
, idna
, pytest-mock
@@ -9,18 +11,22 @@
, pytestCheckHook
, urllib3
, isPy27
, trustme
}:
buildPythonPackage rec {
pname = "requests";
version = "2.25.1";
version = "2.26.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-J5c91KkEpPE7JjoZyGbBO5KjntHJZGVfAl8/jT11uAQ=";
sha256 = "sha256-uKpY+M95P/2HgtPYyxnmbvNverpDU+7IWedGeLAbB6c=";
};
patches = [ ./0001-Prefer-NixOS-Nix-default-CA-bundles-over-certifi.patch ];
patches = [
# Use the default NixOS CA bundle from the certifi package
./0001-Prefer-NixOS-Nix-default-CA-bundles-over-certifi.patch
];
postPatch = ''
# Use latest idna
@@ -28,7 +34,9 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [
brotlicffi
certifi
charset-normalizer
chardet
idna
urllib3
@@ -38,6 +46,7 @@ buildPythonPackage rec {
pytest-mock
pytest-xdist
pytestCheckHook
trustme
];
# AttributeError: 'KeywordMapping' object has no attribute 'get'