1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "future";
12 version = "1.0.0";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-vSloMJMHhh7a4UWKT4pPNZjAO+Q7l1IQdq6/XZTAewU=";
18 };
19
20 nativeBuildInputs = [ setuptools ];
21
22 pythonImportsCheck = [
23 "future.builtins"
24 "future.moves"
25 "future.standard_library"
26 "past.builtins"
27 "past.translation"
28 ];
29
30 doCheck = false;
31
32 meta = {
33 changelog = "https://github.com/PythonCharmers/python-future/blob/v${version}/docs/whatsnew.rst";
34 description = "Clean single-source support for Python 3 and 2";
35 longDescription = ''
36 python-future is the missing compatibility layer between Python 2 and
37 Python 3. It allows you to use a single, clean Python 3.x-compatible
38 codebase to support both Python 2 and Python 3 with minimal overhead.
39
40 It provides future and past packages with backports and forward ports
41 of features from Python 3 and 2. It also comes with futurize and
42 pasteurize, customized 2to3-based scripts that helps you to convert
43 either Py2 or Py3 code easily to support both Python 2 and 3 in a
44 single clean Py3-style codebase, module by module.
45 '';
46 homepage = "https://python-future.org";
47 downloadPage = "https://github.com/PythonCharmers/python-future/releases";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ prikhi ];
50 };
51}