nixpkgs/pkgs/development/python-modules/futures/default.nix

28 lines
712 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy3k, python, stdenv }:
2018-04-06 19:37:04 +01:00
buildPythonPackage rec {
pname = "futures";
2019-10-24 07:47:31 +01:00
version = "3.3.0";
2018-04-06 19:37:04 +01:00
src = fetchPypi {
inherit pname version;
2019-10-24 07:47:31 +01:00
sha256 = "7e033af76a5e35f58e56da7a91e687706faf4e7bdfb2cbc3f2cca6b9bcda9794";
2018-04-06 19:37:04 +01:00
};
# This module is for backporting functionality to Python 2.x, it's builtin in py3k
disabled = isPy3k;
checkPhase = ''
2018-04-06 19:41:33 +01:00
${python.interpreter} test_futures.py
2018-04-06 19:37:04 +01:00
'';
doCheck = !stdenv.isDarwin;
2018-04-06 19:37:04 +01:00
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; [ ];
2018-04-06 19:37:04 +01:00
};
}