python312Packages.future: apply patch for imp removal compat

This commit is contained in:
Martin Weinelt 2023-12-04 02:49:33 +01:00
parent 95752988a4
commit 6614be3727
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,19 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
# build-system
, setuptools
}:
buildPythonPackage rec {
pname = "future";
version = "0.18.3";
format = "setuptools";
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"