Merge pull request #316012 from NickCao/pipx

python311Packages.pipx: fix cross compilation
This commit is contained in:
❄️ 2024-07-27 18:01:15 -03:00 committed by GitHub
commit dbf4e912cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,10 @@ buildPythonPackage rec {
userpath
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [
installShellFiles
argcomplete
];
nativeCheckInputs = [
pytestCheckHook
@ -95,9 +98,9 @@ buildPythonPackage rec {
postInstall = ''
installShellCompletion --cmd pipx \
--bash <(${argcomplete}/bin/register-python-argcomplete pipx --shell bash) \
--zsh <(${argcomplete}/bin/register-python-argcomplete pipx --shell zsh) \
--fish <(${argcomplete}/bin/register-python-argcomplete pipx --shell fish)
--bash <(register-python-argcomplete pipx --shell bash) \
--zsh <(register-python-argcomplete pipx --shell zsh) \
--fish <(register-python-argcomplete pipx --shell fish)
'';
meta = with lib; {