diff options
Diffstat (limited to 'pkgs/development/python-modules/boto3/default.nix')
-rw-r--r-- | pkgs/development/python-modules/boto3/default.nix | 60 |
1 files changed, 27 insertions, 33 deletions
diff --git a/pkgs/development/python-modules/boto3/default.nix b/pkgs/development/python-modules/boto3/default.nix index e8ce2d73f11b..5f57bbc0042e 100644 --- a/pkgs/development/python-modules/boto3/default.nix +++ b/pkgs/development/python-modules/boto3/default.nix @@ -1,40 +1,38 @@ -{ lib -, botocore -, buildPythonPackage -, fetchFromGitHub -, jmespath -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, s3transfer -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + botocore, + jmespath, + s3transfer, + + # tests + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { pname = "boto3"; - version = "1.34.58"; # N.B: if you change this, change botocore and awscli to a matching version + inherit (botocore) version; # N.B: botocore, boto3, awscli needs to be updated in lockstep, bump botocore version for updating these. pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "boto"; repo = "boto3"; rev = "refs/tags/${version}"; - hash = "sha256-2L4pHjrDoy7dPZm0nx+NXZV/K3ZVx7FrNGYZTMrwAs4="; + hash = "sha256-b08tC8EA6iW0O/7rseD9pTkKh/cJ2fe3xJZkEqxS6VI="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - setuptools - ]; + build-system = [ setuptools ]; - pythonRelaxDeps = [ - "s3transfer" - ]; + pythonRelaxDeps = [ "s3transfer" ]; - propagatedBuildInputs = [ + dependencies = [ botocore jmespath s3transfer @@ -45,31 +43,27 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "boto3" - ]; + pythonImportsCheck = [ "boto3" ]; disabledTestPaths = [ # Integration tests require networking "tests/integration" ]; - passthru.optional-dependencies = { - crt = [ - botocore.optional-dependencies.crt - ]; + optional-dependencies = { + crt = [ botocore.optional-dependencies.crt ]; }; - meta = with lib; { + meta = { description = "AWS SDK for Python"; homepage = "https://github.com/boto/boto3"; changelog = "https://github.com/boto/boto3/blob/${version}/CHANGELOG.rst"; - license = licenses.asl20; + license = lib.licenses.asl20; longDescription = '' Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Amazon S3 and Amazon EC2. ''; - maintainers = with maintainers; [ anthonyroussel ]; + maintainers = with lib.maintainers; [ anthonyroussel ]; }; } |