python311Packages.pipx: fix cross compilation

This commit is contained in:
Nick Cao
2024-05-30 18:27:15 -04:00
parent 4c9c9a8004
commit 7db2d0f85e
@@ -41,7 +41,10 @@ buildPythonPackage rec {
userpath
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [
installShellFiles
argcomplete
];
nativeCheckInputs = [
pytestCheckHook
@@ -83,9 +86,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; {