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