python314Packages.rtfunicode: fix build (#510718)

This commit is contained in:
Yohann Boniface
2026-04-18 21:40:28 +00:00
committed by GitHub
@@ -3,20 +3,28 @@
lib,
fetchFromGitHub,
unittestCheckHook,
uv-build,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "rtfunicode";
version = "2.3";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "mjpieters";
repo = "rtfunicode";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-dmPpMplCQIJMHhNFzOIjKwEHVio2mjFEbDmq1Y9UJkA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.9.26,<0.10.0" "uv_build"
'';
build-system = [ uv-build ];
nativeBuildInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "rtfunicode" ];
@@ -26,6 +34,6 @@ buildPythonPackage rec {
maintainers = [ lib.maintainers.lucasew ];
license = lib.licenses.bsd2;
homepage = "https://github.com/mjpieters/rtfunicode";
changelog = "https://github.com/mjpieters/rtfunicode/releases/tag/${src.tag}";
changelog = "https://github.com/mjpieters/rtfunicode/releases/tag/${finalAttrs.src.tag}";
};
}
})