1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy26
5, importlib
6, argparse
7}:
8
9buildPythonPackage rec {
10 pname = "future";
11 version = "0.16.0";
12 name = "${pname}-${version}";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773";
17 };
18
19 propagatedBuildInputs = lib.optionals isPy26 [ importlib argparse ];
20 doCheck = false;
21
22 meta = {
23 description = "Clean single-source support for Python 3 and 2";
24 longDescription = ''
25 python-future is the missing compatibility layer between Python 2 and
26 Python 3. It allows you to use a single, clean Python 3.x-compatible
27 codebase to support both Python 2 and Python 3 with minimal overhead.
28
29 It provides future and past packages with backports and forward ports
30 of features from Python 3 and 2. It also comes with futurize and
31 pasteurize, customized 2to3-based scripts that helps you to convert
32 either Py2 or Py3 code easily to support both Python 2 and 3 in a
33 single clean Py3-style codebase, module by module.
34 '';
35 homepage = https://python-future.org;
36 downloadPage = https://github.com/PythonCharmers/python-future/releases;
37 license = with lib.licenses; [ mit ];
38 maintainers = with lib.maintainers; [ prikhi ];
39 };
40}