diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-04-06 20:37:04 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-04-08 11:36:06 +0200 |
commit | 28419df2e37e7c028df72684e788cb7c4a261813 (patch) | |
tree | d2d4b0414cb7d705051df5d9b8b8639f1d1cf0bb /pkgs/development/python-modules/futures | |
parent | e110d297c3cecca9e6e916e6b487bf0aa91b7a0e (diff) | |
download | nixlib-28419df2e37e7c028df72684e788cb7c4a261813.tar nixlib-28419df2e37e7c028df72684e788cb7c4a261813.tar.gz nixlib-28419df2e37e7c028df72684e788cb7c4a261813.tar.bz2 nixlib-28419df2e37e7c028df72684e788cb7c4a261813.tar.lz nixlib-28419df2e37e7c028df72684e788cb7c4a261813.tar.xz nixlib-28419df2e37e7c028df72684e788cb7c4a261813.tar.zst nixlib-28419df2e37e7c028df72684e788cb7c4a261813.zip |
python.pkgs.futures: move expression
Diffstat (limited to 'pkgs/development/python-modules/futures')
-rw-r--r-- | pkgs/development/python-modules/futures/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/futures/default.nix b/pkgs/development/python-modules/futures/default.nix new file mode 100644 index 000000000000..c4a39c39c339 --- /dev/null +++ b/pkgs/development/python-modules/futures/default.nix @@ -0,0 +1,28 @@ +{ lib, buildPythonPackage, fetchPypi, isPy3k, python }: + +buildPythonPackage rec { + pname = "futures"; + version = "3.1.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1z9j05fdj2yszjmz4pmjhl2jdnwhdw80cjwfqq3ci0yx19gv9v2i"; + }; + + # This module is for backporting functionality to Python 2.x, it's builtin in py3k + disabled = isPy3k; + + checkPhase = '' + ${python.interpreter} -m unittest discover + ''; + + # Tests fail + doCheck = false; + + meta = with lib; { + description = "Backport of the concurrent.futures package from Python 3.2"; + homepage = "https://github.com/agronholm/pythonfutures"; + license = licenses.bsd2; + maintainers = with maintainers; [ garbas ]; + }; +} |