python3Packages.okonomiyaki: fix build

- Remove redundant patch (upstream fixed in https://github.com/enthought/okonomiyaki/commit/5c7bbde99c9f76d6b9e5e030c7737112ca848bbe)
- Fix split logic on an empty list
This commit is contained in:
DESPsyched
2025-08-31 08:53:05 -04:00
parent 925e8b8962
commit 14fb2d2eba
@@ -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 \