3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python2-modules/futures/default.nix
Frederik Rietdijk ae18d68b6b python2.pkgs: move expressions into python2-modules/ folder
Another step in further separating python2 from python3.
2022-01-16 10:00:16 +01:00

28 lines
712 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, python, stdenv }:
buildPythonPackage rec {
pname = "futures";
version = "3.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "7e033af76a5e35f58e56da7a91e687706faf4e7bdfb2cbc3f2cca6b9bcda9794";
};
# 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; [ ];
};
}