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 \