From 14fb2d2eba7e5d72cc1e850d5924b258faba52bb Mon Sep 17 00:00:00 2001 From: DESPsyched Date: Sun, 31 Aug 2025 08:53:05 -0400 Subject: [PATCH] python3Packages.okonomiyaki: fix build - Remove redundant patch (upstream fixed in https://github.com/enthought/okonomiyaki/commit/5c7bbde99c9f76d6b9e5e030c7737112ca848bbe) - Fix split logic on an empty list --- pkgs/development/python-modules/okonomiyaki/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/okonomiyaki/default.nix b/pkgs/development/python-modules/okonomiyaki/default.nix index 812379dda907..d5365439945c 100644 --- a/pkgs/development/python-modules/okonomiyaki/default.nix +++ b/pkgs/development/python-modules/okonomiyaki/default.nix @@ -30,12 +30,6 @@ buildPythonPackage rec { hash = "sha256-xAF9Tdr+IM3lU+mcNcAWATJLZOVvbx0llqznqHLVqDc="; }; - postPatch = '' - # Fixed for >= 2.0.0 - substituteInPlace setup.cfg \ - --replace-fail "long_description_content_type = rst" "long_description_content_type = text/x-rst" - ''; - build-system = [ setuptools ]; optional-dependencies = { @@ -68,6 +62,8 @@ buildPythonPackage rec { preCheck = '' substituteInPlace okonomiyaki/runtimes/tests/test_runtime.py \ --replace-fail 'runtime_info = PythonRuntime.from_running_python()' 'raise unittest.SkipTest() #' + substituteInPlace okonomiyaki/platforms/_platform.py \ + --replace-fail 'name.split()[0]' '(name.split() or [""])[0]' '' + lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace okonomiyaki/platforms/tests/test_pep425.py \