python314Packages.rtfunicode: fix build

This commit is contained in:
Sigmanificient
2026-04-16 23:58:17 +02:00
parent 88c1e826c1
commit c3a6ed4cb7
@@ -3,12 +3,13 @@
lib,
fetchFromGitHub,
unittestCheckHook,
uv-build,
}:
buildPythonPackage rec {
pname = "rtfunicode";
version = "2.3";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "mjpieters";
@@ -17,6 +18,13 @@ buildPythonPackage rec {
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" ];