Merge pull request #231829 from K900/poetry-wrapper-fix

poetry: make sure we don't load stuff from ambient PYTHONPATH
This commit is contained in:
K900 2023-05-14 16:45:56 +03:00 committed by GitHub
commit 859cd545bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,11 @@ buildPythonPackage rec {
"poetry"
];
# Unset ambient PYTHONPATH in the wrapper, so Poetry only ever runs with its own,
# isolated set of dependencies. This works because the correct PYTHONPATH is set
# in the Python script, which runs after the wrapper.
makeWrapperArgs = ["--unset PYTHONPATH"];
meta = with lib; {
changelog = "https://github.com/python-poetry/poetry/blob/${src.rev}/CHANGELOG.md";
homepage = "https://python-poetry.org/";