mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
12 lines
384 B
Bash
12 lines
384 B
Bash
remove-path-dependencies-hook() {
|
|
if ! test -f pyproject.toml; then
|
|
return
|
|
fi
|
|
|
|
# Tell poetry not to resolve the path dependencies. Any version is fine!
|
|
@yj@ -tj < pyproject.toml | @pythonInterpreter@ @pyprojectPatchScript@ > pyproject.json
|
|
@yj@ -jt < pyproject.json > pyproject.toml
|
|
rm pyproject.json
|
|
}
|
|
|
|
postPatchHooks+=(remove-path-dependencies-hook)
|