Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.3.3"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "921a37e2aefc64145e7b73d50c71bb4f26f46e4c9f414dc648c6245ff92cf7db"; 22 }; 23 24 propagatedBuildInputs = 25 [ botocore 26 ] ++ stdenv.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 = { 47 homepage = "https://github.com/boto/s3transfer"; 48 license = stdenv.lib.licenses.asl20; 49 description = "A library for managing Amazon S3 transfers"; 50 }; 51}