From 5a3164e9cd249c2fcebb599af8c39d514238c933 Mon Sep 17 00:00:00 2001 From: Ryan Omasta Date: Sun, 15 Feb 2026 01:46:34 -0700 Subject: [PATCH 1/2] python3Packages.pproxy: fix rev --- pkgs/development/python-modules/pproxy/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pproxy/default.nix b/pkgs/development/python-modules/pproxy/default.nix index 8e33dff6f88e..39b9f9f582ea 100644 --- a/pkgs/development/python-modules/pproxy/default.nix +++ b/pkgs/development/python-modules/pproxy/default.nix @@ -18,8 +18,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "qwj"; repo = "python-proxy"; - rev = "7fccf8dd62204f34b0aa3a70fc568fd6ddff7728"; - sha256 = "sha256-bOqDdNiaZ5MRi/UeF0hJwMs+rfQBKRsTmXrZ6ieIguo="; + tag = version; + hash = "sha256-DWxbU2LtXzec1T175cMVJuWuhnxWYhe0FH67stMyOTM="; }; nativeBuildInputs = [ setuptools ]; @@ -58,6 +58,6 @@ buildPythonPackage rec { mainProgram = "pproxy"; homepage = "https://github.com/qwj/python-proxy"; license = lib.licenses.mit; - maintainers = [ ]; + maintainers = [ lib.maintainers.ryand56 ]; }; } From b10e3bac24af1bf6b1a12b748c4d406297da52c3 Mon Sep 17 00:00:00 2001 From: Ryan Omasta Date: Sun, 15 Feb 2026 02:03:23 -0700 Subject: [PATCH 2/2] python3Packages.requests-hardened: init at 1.2.0 --- .../requests-hardened/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/requests-hardened/default.nix diff --git a/pkgs/development/python-modules/requests-hardened/default.nix b/pkgs/development/python-modules/requests-hardened/default.nix new file mode 100644 index 000000000000..d1078070bfc3 --- /dev/null +++ b/pkgs/development/python-modules/requests-hardened/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + poetry-core, + requests, + + pproxy, + pytest-socket, + pysocks, + trustme, + pytestCheckHook, +}: +buildPythonPackage rec { + pname = "requests-hardened"; + version = "1.2.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "saleor"; + repo = "requests-hardened"; + tag = "v${version}"; + hash = "sha256-J4xQY2W5upJQ3hrA2hjkw8voLpxNPpekNwmyMKKAVAo="; + }; + + build-system = [ poetry-core ]; + dependencies = [ requests ]; + + nativeCheckInputs = [ + pproxy + pytest-socket + pysocks + trustme + pytestCheckHook + ]; + + pythonImportsCheck = [ "requests_hardened" ]; + + meta = { + description = "Library that adds hardened behavior to python requests"; + homepage = "https://github.com/saleor/requests-hardened"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.ryand56 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b9dfbe1dff97..5ced06fe0dc7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16488,6 +16488,8 @@ self: super: with self; { requests-gssapi = callPackage ../development/python-modules/requests-gssapi { }; + requests-hardened = callPackage ../development/python-modules/requests-hardened { }; + requests-hawk = callPackage ../development/python-modules/requests-hawk { }; requests-http-message-signatures =