1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, botocore
5, jmespath
6, s3transfer
7, setuptools
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "boto3";
13 version = "1.28.57"; # N.B: if you change this, change botocore and awscli to a matching version
14 format = "pyproject";
15
16 src = fetchFromGitHub {
17 owner = "boto";
18 repo = pname;
19 rev = version;
20 hash = "sha256-+kuILCUK10tvpfTEAHZGvKKmpw6Pgn+v2kQkwCkPMKg=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 propagatedBuildInputs = [
28 botocore
29 jmespath
30 s3transfer
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "boto3"
39 ];
40
41 disabledTestPaths = [
42 # Integration tests require networking
43 "tests/integration"
44 ];
45
46 meta = with lib; {
47 homepage = "https://github.com/boto/boto3";
48 changelog = "https://github.com/boto/boto3/blob/${version}/CHANGELOG.rst";
49 license = licenses.asl20;
50 description = "AWS SDK for Python";
51 longDescription = ''
52 Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
53 Python, which allows Python developers to write software that makes use of
54 services like Amazon S3 and Amazon EC2.
55 '';
56 maintainers = with maintainers; [ anthonyroussel ];
57 };
58}