2018-08-01 04:11:32 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, python, stdenv }:
|
2018-04-06 20:37:04 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "futures";
|
2018-04-06 20:37:43 +02:00
|
|
|
version = "3.2.0";
|
2018-04-06 20:37:04 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-06 20:37:43 +02:00
|
|
|
sha256 = "9ec02aa7d674acb8618afb127e27fde7fc68994c0437ad759fa094a574adb265";
|
2018-04-06 20:37:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# This module is for backporting functionality to Python 2.x, it's builtin in py3k
|
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-04-06 20:41:33 +02:00
|
|
|
${python.interpreter} test_futures.py
|
2018-04-06 20:37:04 +02:00
|
|
|
'';
|
|
|
|
|
2018-08-01 04:11:32 +02:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2018-04-06 20:37:04 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Backport of the concurrent.futures package from Python 3.2";
|
|
|
|
homepage = "https://github.com/agronholm/pythonfutures";
|
|
|
|
license = licenses.bsd2;
|
2019-07-03 11:27:39 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-04-06 20:37:04 +02:00
|
|
|
};
|
|
|
|
}
|