2017-05-29 23:19:07 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2023-12-04 01:49:33 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
2017-05-29 23:19:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "future";
|
2024-03-08 01:40:15 +00:00
|
|
|
version = "1.0.0";
|
2023-12-04 01:49:33 +00:00
|
|
|
pyproject = true;
|
2017-05-29 23:19:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-03-08 01:40:15 +00:00
|
|
|
hash = "sha256-vSloMJMHhh7a4UWKT4pPNZjAO+Q7l1IQdq6/XZTAewU=";
|
2017-05-29 23:19:07 +00:00
|
|
|
};
|
|
|
|
|
2023-12-04 01:49:33 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
2023-01-14 12:10:16 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"future.builtins"
|
|
|
|
"future.moves"
|
|
|
|
"future.standard_library"
|
|
|
|
"past.builtins"
|
|
|
|
"past.translation"
|
|
|
|
];
|
|
|
|
|
2017-05-29 23:19:07 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
2023-01-14 12:10:16 +00:00
|
|
|
changelog = "https://github.com/PythonCharmers/python-future/blob/v${version}/docs/whatsnew.rst";
|
2017-05-29 23:19:07 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://python-future.org";
|
|
|
|
downloadPage = "https://github.com/PythonCharmers/python-future/releases";
|
2023-01-14 12:10:16 +00:00
|
|
|
license = lib.licenses.mit;
|
2017-05-29 23:19:07 +00:00
|
|
|
maintainers = with lib.maintainers; [ prikhi ];
|
|
|
|
};
|
|
|
|
}
|