Unverified Commit f3e0801d authored by natsukium's avatar natsukium
Browse files

python312Packages.requests-aws4auth: refactor

parent 3f475ce9
Loading
Loading
Loading
Loading
+8 −10
Original line number Diff line number Diff line
@@ -4,36 +4,34 @@
  fetchFromGitHub,
  httpx,
  pytestCheckHook,
  python,
  pythonOlder,
  requests,
  six,
  setuptools,
}:

buildPythonPackage rec {
  pname = "requests-aws4auth";
  version = "1.3.1";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "tedder";
    repo = pname;
    repo = "requests-aws4auth";
    rev = "refs/tags/v${version}";
    hash = "sha256-tRo38fdWqZmutGhWv8Hks+oFaLv770RlAHYgS3S6xJA=";
  };

  propagatedBuildInputs = [
    requests
    six
  ];
  build-system = [ setuptools ];

  passthru.optional-dependencies = {
  dependencies = [ requests ];

  optional-dependencies = {
    httpx = [ httpx ];
  };

  nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.httpx;
  nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.httpx;

  pythonImportsCheck = [ "requests_aws4auth" ];