depot/third_party/nixpkgs/pkgs/development/python-modules/boto3/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

62 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, botocore
, jmespath
, s3transfer
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "boto3";
version = "1.33.6"; # N.B: if you change this, change botocore and awscli to a matching version
format = "pyproject";
src = fetchFromGitHub {
owner = "boto";
repo = pname;
rev = version;
hash = "sha256-oOrUVBh1sbaOibU8A+bGZ4z7IEiE4gjHwZ+8889Hv60=";
};
nativeBuildInputs = [
setuptools
];
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; {
homepage = "https://github.com/boto/boto3";
changelog = "https://github.com/boto/boto3/blob/${version}/CHANGELOG.rst";
license = licenses.asl20;
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.
'';
maintainers = with maintainers; [ anthonyroussel ];
};
}