nix-community/poetry2nix

soundfile package patch fails when `preferWheels = true`

rossng opened this issue · 0 comments

I have submitted #1705 which should fix the issue.

Describe the issue

soundfile should build correctly, but the patch fails to apply to the wheel.

Additional context

Error:

error: builder for '/nix/store/xanlb1fzab4rvv5x0j4fifip4sb766aq-python3.11-soundfile-0.10.2.drv' failed with exit code 1;
       last 17 log lines:
       > Sourcing python-remove-tests-dir-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Sourcing python-remove-bin-bytecode-hook.sh
       > Sourcing wheel setup hook
       > Using wheelUnpackPhase
       > Sourcing pypa-install-hook
       > Using pypaInstallPhase
       > Sourcing python-imports-check-hook.sh
       > Using pythonImportsCheckPhase
       > Sourcing python-namespaces-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Running phase: unpackPhase
       > Executing wheelUnpackPhase
       > Finished executing wheelUnpackPhase
       > Running phase: patchPhase
       > substitute(): ERROR: file 'soundfile.py' does not exist
       > /nix/store/q2sr9a4likgf0c0ib3zxxy63vr0dr0w9-stdenv-darwin/setup: line 140: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/xanlb1fzab4rvv5x0j4fifip4sb766aq-python3.11-soundfile-0.10.2.drv'.
error: 1 dependencies of derivation '/nix/store/gg5c90rjhrq4spyq3h4r0mbfy4yrgs38-python3-3.11.9-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2hrvyzybx5lf5k7kqbj3n1rwk0m4kxzr-nix-shell-env.drv' failed to build