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