diff options
author | adisbladis <adis@blad.is> | 2017-11-11 00:55:43 +0800 |
---|---|---|
committer | adisbladis <adis@blad.is> | 2017-11-11 02:35:41 +0800 |
commit | ac3a328e0740cbfef7c4b3ebdf472784fdedb3b0 (patch) | |
tree | ef607b830f55bfd1a57c3027c414a76ac6c66acf /pkgs | |
parent | 0286cc72203d3872902bae5a8b48dbc5c95ef93c (diff) |
pythonPackages.s3transfer: 0.1.10 -> 0.1.11
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/s3transfer/default.nix | 53 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 37 |
2 files changed, 55 insertions, 35 deletions
diff --git a/pkgs/development/python-modules/s3transfer/default.nix b/pkgs/development/python-modules/s3transfer/default.nix new file mode 100644 index 0000000000000..8e5b30c26b413 --- /dev/null +++ b/pkgs/development/python-modules/s3transfer/default.nix @@ -0,0 +1,53 @@ +{ stdenv +, fetchPypi +, pythonOlder +, buildPythonPackage +, docutils +, mock +, nose +, coverage +, wheel +, unittest2 +, botocore +, futures +}: + +buildPythonPackage rec { + pname = "s3transfer"; + version = "0.1.11"; + + src = fetchPypi { + inherit pname version; + sha256 = "0yfrfnf404cxzn3iswibqjxklsl0b1lwgqiml6pwiqj79a7zbwbn"; + }; + + foo = 1; + + 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"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 668e63fd59d50..561ceeff4b04c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8352,15 +8352,13 @@ in { }; fastimport = callPackage ../development/python-modules/fastimport { }; - + feedgen = callPackage ../development/python-modules/feedgen { }; feedgenerator = callPackage ../development/python-modules/feedgenerator { inherit (pkgs) glibcLocales; }; - s3transfer = callPackage ../development/python-modules/s3transfer { }; - feedparser = buildPythonPackage (rec { name = "feedparser-5.2.1"; @@ -17813,38 +17811,7 @@ in { }; }; - s3transfer = buildPythonPackage rec { - version = "0.1.10"; - name = "s3transfer-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/s3transfer/${name}.tar.gz"; - sha256 = "1h8g9bknvxflxkpbnxyfxmk8pvgykbbk9ljdvhqh6z4vjc2926ms"; - }; - - foo = 1; - - propagatedBuildInputs = - [ self.botocore - ] ++ stdenv.lib.optional (pythonOlder "3") self.futures; - - buildInputs = with self; [ 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"; - }; - }; + s3transfer = callPackage ../development/python-modules/s3transfer { }; seqdiag = callPackage ../development/python-modules/seqdiag { }; |