Skip to content

Commit

Permalink
python3Packages.requests: 2.25.1 -> 2.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored and mweinelt committed Sep 5, 2021
1 parent 5e3cb00 commit 4cc9b84
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkgs/development/python-modules/requests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, buildPythonPackage
, certifi
, chardet
, charset-normalizer
, fetchPypi
, idna
, pytest-mock
Expand All @@ -17,22 +18,27 @@

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
substituteInPlace setup.py --replace ",<3" ""
'';

propagatedBuildInputs = [
brotlicffi
certifi
charset-normalizer
chardet
idna
urllib3
Expand All @@ -47,6 +53,7 @@ buildPythonPackage rec {
pytest-mock
pytest-xdist
pytestCheckHook
trustme
];

# AttributeError: 'KeywordMapping' object has no attribute 'get'
Expand Down

0 comments on commit 4cc9b84

Please sign in to comment.