1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 isPy3k,
6 python,
7 stdenv,
8}:
9
10buildPythonPackage rec {
11 pname = "futures";
12 version = "3.3.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "7e033af76a5e35f58e56da7a91e687706faf4e7bdfb2cbc3f2cca6b9bcda9794";
17 };
18
19 # This module is for backporting functionality to Python 2.x, it's builtin in py3k
20 disabled = isPy3k;
21
22 checkPhase = ''
23 ${python.interpreter} test_futures.py
24 '';
25
26 doCheck = !stdenv.hostPlatform.isDarwin;
27
28 meta = with lib; {
29 description = "Backport of the concurrent.futures package from Python 3.2";
30 homepage = "https://github.com/agronholm/pythonfutures";
31 license = licenses.bsd2;
32 maintainers = [ ];
33 };
34}