1{ lib
2, fetchPypi
3, pythonOlder
4, buildPythonPackage
5, docutils
6, mock
7, nose
8, coverage
9, wheel
10, unittest2
11, botocore
12, futures ? null
13}:
14
15buildPythonPackage rec {
16 pname = "s3transfer";
17 version = "0.3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "c5dadf598762899d8cfaecf68eba649cd25b0ce93b6c954b156aaa3eed160547";
22 };
23
24 propagatedBuildInputs =
25 [ botocore
26 ] ++ lib.optional (pythonOlder "3") futures;
27
28 buildInputs = [
29 docutils
30 mock
31 nose
32 coverage
33 wheel
34 unittest2
35 ];
36
37 checkPhase = ''
38 pushd s3transfer/tests
39 nosetests -v unit/ functional/
40 popd
41 '';
42
43 # version on pypi has no tests/ dir
44 doCheck = false;
45
46 meta = with lib; {
47 homepage = "https://github.com/boto/s3transfer";
48 license = licenses.asl20;
49 description = "A library for managing Amazon S3 transfers";
50 };
51}