2021-01-24 00:29:22 +00:00
|
|
|
{ lib
|
2017-11-10 16:55:43 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, docutils
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, coverage
|
|
|
|
, wheel
|
|
|
|
, unittest2
|
|
|
|
, botocore
|
|
|
|
, futures
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "s3transfer";
|
2020-02-08 13:09:17 +00:00
|
|
|
version = "0.3.3";
|
2017-11-10 16:55:43 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-08 13:09:17 +00:00
|
|
|
sha256 = "921a37e2aefc64145e7b73d50c71bb4f26f46e4c9f414dc648c6245ff92cf7db";
|
2017-11-10 16:55:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs =
|
|
|
|
[ botocore
|
2021-01-24 00:29:22 +00:00
|
|
|
] ++ lib.optional (pythonOlder "3") futures;
|
2017-11-10 16:55:43 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
docutils
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
coverage
|
|
|
|
wheel
|
|
|
|
unittest2
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pushd s3transfer/tests
|
|
|
|
nosetests -v unit/ functional/
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
|
|
|
|
# version on pypi has no tests/ dir
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/boto/s3transfer";
|
2021-01-24 00:29:22 +00:00
|
|
|
license = licenses.asl20;
|
2017-11-10 16:55:43 +00:00
|
|
|
description = "A library for managing Amazon S3 transfers";
|
|
|
|
};
|
|
|
|
}
|