depot/third_party/nixpkgs/pkgs/development/python-modules/boto3/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

74 lines
1.5 KiB
Nix

{ lib
, botocore
, buildPythonPackage
, fetchFromGitHub
, jmespath
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, s3transfer
, setuptools
}:
buildPythonPackage rec {
pname = "boto3";
version = "1.34.49"; # N.B: if you change this, change botocore and awscli to a matching version
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "boto";
repo = "boto3";
rev = "refs/tags/${version}";
hash = "sha256-/pgbLSL5RJ5RrKUAfQ1QNJykBdICrpqnuziHOVHt1JI=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
pythonRelaxDeps = [
"botocore"
"s3transfer"
];
propagatedBuildInputs = [
botocore
jmespath
s3transfer
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"boto3"
];
disabledTestPaths = [
# Integration tests require networking
"tests/integration"
];
passthru.optional-dependencies = {
crt = [
botocore.optional-dependencies.crt
];
};
meta = with lib; {
description = "AWS SDK for Python";
homepage = "https://github.com/boto/boto3";
changelog = "https://github.com/boto/boto3/blob/${version}/CHANGELOG.rst";
license = 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 ];
};
}