Unverified Commit 1fa8310d authored by Thomas Gerbet's avatar Thomas Gerbet Committed by GitHub
Browse files

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

parents 1299f922 b10e3bac
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 ];
  };
}
+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
@@ -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 =