mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 11:20:10 +00:00
python3Packages.untokenize: fix build with Python 3.14 (#567276)
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pythonAtLeast,
|
||||
unittestCheckHook,
|
||||
}:
|
||||
|
||||
@@ -11,14 +10,18 @@ buildPythonPackage rec {
|
||||
version = "0.1.1";
|
||||
format = "setuptools";
|
||||
|
||||
# https://github.com/myint/untokenize/issues/4
|
||||
disabled = pythonAtLeast "3.14";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3865dbbbb8efb4bb5eaa72f1be7f3e0be00ea8b7f125c69cbd1f5fda926f37a2";
|
||||
};
|
||||
|
||||
# the deprecated ast.Constant.s alias was removed in Python 3.14
|
||||
# https://github.com/myint/untokenize/pull/6
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "body[0].value.s" "body[0].value.value"
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user