python3Packages.requests-hardened: init at 1.2.0 (#490605)

This commit is contained in:
Thomas Gerbet
2026-02-26 12:39:23 +00:00
committed by GitHub
3 changed files with 51 additions and 3 deletions
@@ -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 ];
};
}
@@ -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 ];
};
}
+2
View File
@@ -16556,6 +16556,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 =