nixpkgs/pkgs/development/python-modules/poetry-dynamic-versioning/setup-hook.sh
Martin Weinelt f71d4911cc python310Packages.poetry-dynamic-versioning: Add setup-hook
to not so dynamically set the package version.
2023-06-15 11:45:12 +02:00

9 lines
240 B
Bash

version-pretend-hook() {
echo "Setting POETRY_DYNAMIC_VERSIONING_BYPASS to $version"
export POETRY_DYNAMIC_VERSIONING_BYPASS=$version
}
if [ -z "${dontBypassPoetryDynamicVersioning-}" ]; then
preBuildHooks+=(version-pretend-hook)
fi