Skip to content

Commit

Permalink
python310Packages.requests-unixsocket: patch to make compatible with …
Browse files Browse the repository at this point in the history
…urllib3 2+
  • Loading branch information
tjni committed Jun 30, 2023
1 parent 68b3d32 commit 831a625
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/development/python-modules/requests-unixsocket/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, pbr
, requests
, pytestCheckHook
Expand All @@ -17,6 +18,15 @@ buildPythonPackage rec {
hash = "sha256-KDBCg+qTV9Rf/1itWxHkdwjPv1gGgXqlmyo2Mijulx4=";
};

patches = [
# https://github.com/msabramo/requests-unixsocket/pull/69
(fetchpatch {
name = "urllib3-2-compatibility.patch";
url = "https://github.com/msabramo/requests-unixsocket/commit/39b9c64847a52ddc8c6d14ff414a6a7a3f6358d9.patch";
hash = "sha256-DFtjhk33JLCu7FW6XI7uf2klNmwzvh2QNwxUb4W223Q=";
})
];

nativeBuildInputs = [
pbr
];
Expand Down

0 comments on commit 831a625

Please sign in to comment.