mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
Package Future 0.18.2 for us
This commit is contained in:
parent
349d34b099
commit
c4437bd194
35
nix/future.nix
Normal file
35
nix/future.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "future";
|
||||||
|
version = "0.18.2";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256:0zakvfj87gy6mn1nba06sdha63rn4njm7bhh0wzyrxhcny8avgmi";
|
||||||
|
};
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Clean single-source support for Python 3 and 2";
|
||||||
|
longDescription = ''
|
||||||
|
python-future is the missing compatibility layer between Python 2 and
|
||||||
|
Python 3. It allows you to use a single, clean Python 3.x-compatible
|
||||||
|
codebase to support both Python 2 and Python 3 with minimal overhead.
|
||||||
|
|
||||||
|
It provides future and past packages with backports and forward ports
|
||||||
|
of features from Python 3 and 2. It also comes with futurize and
|
||||||
|
pasteurize, customized 2to3-based scripts that helps you to convert
|
||||||
|
either Py2 or Py3 code easily to support both Python 2 and 3 in a
|
||||||
|
single clean Py3-style codebase, module by module.
|
||||||
|
'';
|
||||||
|
homepage = https://python-future.org;
|
||||||
|
downloadPage = https://github.com/PythonCharmers/python-future/releases;
|
||||||
|
license = with lib.licenses; [ mit ];
|
||||||
|
maintainers = with lib.maintainers; [ prikhi ];
|
||||||
|
};
|
||||||
|
}
|
@ -10,6 +10,11 @@ self: super: {
|
|||||||
# NixOS autobahn package has trollius as a dependency, although
|
# NixOS autobahn package has trollius as a dependency, although
|
||||||
# it is optional. Trollius is unmaintained and fails on CI.
|
# it is optional. Trollius is unmaintained and fails on CI.
|
||||||
autobahn = python-super.callPackage ./autobahn.nix { };
|
autobahn = python-super.callPackage ./autobahn.nix { };
|
||||||
|
|
||||||
|
# Porting to Python 3 is greatly aided by the future package. A
|
||||||
|
# slightly newer version than appears in nixos 19.09 is helpful.
|
||||||
|
future = python-super.callPackage ./future.nix { };
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,7 @@ python.pkgs.buildPythonPackage rec {
|
|||||||
setuptoolsTrial pyasn1 zope_interface
|
setuptoolsTrial pyasn1 zope_interface
|
||||||
service-identity pyyaml magic-wormhole treq
|
service-identity pyyaml magic-wormhole treq
|
||||||
eliot autobahn cryptography setuptools
|
eliot autobahn cryptography setuptools
|
||||||
|
future
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = with python.pkgs; [
|
checkInputs = with python.pkgs; [
|
||||||
|
Loading…
Reference in New Issue
Block a user