depot/third_party/nixpkgs/pkgs/development/python-modules/s3transfer/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

51 lines
862 B
Nix

{ stdenv
, fetchPypi
, pythonOlder
, buildPythonPackage
, docutils
, mock
, nose
, coverage
, wheel
, unittest2
, botocore
, futures
}:
buildPythonPackage rec {
pname = "s3transfer";
version = "0.3.3";
src = fetchPypi {
inherit pname version;
sha256 = "921a37e2aefc64145e7b73d50c71bb4f26f46e4c9f414dc648c6245ff92cf7db";
};
propagatedBuildInputs =
[ botocore
] ++ stdenv.lib.optional (pythonOlder "3") futures;
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;
meta = {
homepage = "https://github.com/boto/s3transfer";
license = stdenv.lib.licenses.asl20;
description = "A library for managing Amazon S3 transfers";
};
}