python312Packages.future: apply patch for imp removal compat
This commit is contained in:
parent
95752988a4
commit
6614be3727
1 changed files with 20 additions and 2 deletions
|
@ -1,19 +1,37 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
|
|
||||||
|
# build-system
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "future";
|
pname = "future";
|
||||||
version = "0.18.3";
|
version = "0.18.3";
|
||||||
|
pyproject = true;
|
||||||
format = "setuptools";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-NKF0Nu0elml6hvnePRWjsL4B2LyN6cHf/Vn7gjTtUwc=";
|
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 = [
|
pythonImportsCheck = [
|
||||||
"future.builtins"
|
"future.builtins"
|
||||||
"future.moves"
|
"future.moves"
|
||||||
|
|
Loading…
Reference in a new issue