summary refs log tree commit diff
path: root/pkgs/development/python-modules/futures/default.nix
blob: 83aaa6692ddff9de2de5faa1ccfd5a1eef4b608a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildPythonPackage, fetchPypi, isPy3k, python, stdenv }:

buildPythonPackage rec {
  pname = "futures";
  version = "3.2.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "9ec02aa7d674acb8618afb127e27fde7fc68994c0437ad759fa094a574adb265";
  };

  # This module is for backporting functionality to Python 2.x, it's builtin in py3k
  disabled = isPy3k;

  checkPhase = ''
    ${python.interpreter} test_futures.py
  '';

  doCheck = !stdenv.isDarwin;

  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 ];
  };
}