mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 23:10:02 +00:00
29 lines
707 B
Nix
29 lines
707 B
Nix
{ 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 ];
|
|
};
|
|
}
|