2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-01-20 10:41:00 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, botocore
|
|
|
|
, jmespath
|
|
|
|
, s3transfer
|
2023-01-20 10:41:00 +00:00
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-02-22 21:28:39 +00:00
|
|
|
pname = "boto3";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "1.28.9"; # N.B: if you change this, change botocore and awscli to a matching version
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boto";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-NkNHA20yn1Q7uoq/EL1Wn8F1fpi1waQujutGIKsnxlI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
botocore
|
|
|
|
jmespath
|
|
|
|
s3transfer
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"boto3"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Integration tests require networking
|
|
|
|
"tests/integration"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/boto/boto3";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/boto/boto3/blob/${version}/CHANGELOG.rst";
|
|
|
|
license = licenses.asl20;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "AWS SDK for Python";
|
|
|
|
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.
|
|
|
|
'';
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [ anthonyroussel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|