python.pkgs.futures: move expression
This commit is contained in:
parent
e110d297c3
commit
28419df2e3
28
pkgs/development/python-modules/futures/default.nix
Normal file
28
pkgs/development/python-modules/futures/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -5950,32 +5950,7 @@ in {
|
|||
};
|
||||
});
|
||||
|
||||
futures = buildPythonPackage rec {
|
||||
name = "futures-${version}";
|
||||
version = "3.1.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/f/futures/${name}.tar.gz";
|
||||
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 pkgs.stdenv.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 ];
|
||||
};
|
||||
};
|
||||
futures = callPackage ../development/python-modules/futures { };
|
||||
|
||||
futures_2_2 = self.futures.override rec {
|
||||
version = "2.2.0";
|
||||
|
|
Loading…
Reference in a new issue