python312Packages.requests-aws4auth: refactor
This commit is contained in:
@@ -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" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user