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