Commit c3a6ed4c authored by Sigmanificient's avatar Sigmanificient
Browse files

python314Packages.rtfunicode: fix build

parent 88c1e826
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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" ];