Unverified Commit b10e3bac authored by Ryan Omasta's avatar Ryan Omasta
Browse files

python3Packages.requests-hardened: init at 1.2.0

parent 5a3164e9
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 =