depot/third_party/nixpkgs/pkgs/development/python-modules/future/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

64 lines
1.8 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
# build-system
, setuptools
}:
buildPythonPackage rec {
pname = "future";
version = "0.18.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-NKF0Nu0elml6hvnePRWjsL4B2LyN6cHf/Vn7gjTtUwc=";
};
patches = [
(fetchpatch {
url = "https://github.com/PythonCharmers/python-future/commit/1901c1c347bcad603e8404b64656994eb2cc0439.patch";
hash = "sha256-wUSWVs7+KTsTmEM4OkpViAjDGWqx5h0SLPIacMZCpWU=";
excludes = [
"build.sh"
"docs/whatsnew.rst"
];
})
];
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [
"future.builtins"
"future.moves"
"future.standard_library"
"past.builtins"
"past.translation"
];
doCheck = false;
meta = {
changelog = "https://github.com/PythonCharmers/python-future/blob/v${version}/docs/whatsnew.rst";
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ prikhi ];
};
}