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.1.13";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "90dc18e028989c609146e241ea153250be451e05ecc0c2832565231dacdf59c1";
22 };
23
24 foo = 1;
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}