{"action":"opened","issue":{"url":"https://api.github.com/repos/garbas/pypi2nix/issues/199","repository_url":"https://api.github.com/repos/garbas/pypi2nix","labels_url":"https://api.github.com/repos/garbas/pypi2nix/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/garbas/pypi2nix/issues/199/comments","events_url":"https://api.github.com/repos/garbas/pypi2nix/issues/199/events","html_url":"https://github.com/garbas/pypi2nix/issues/199","id":326870356,"number":199,"title":"How to expose argcomplete functionality?","user":{"login":"ivanbrennan","id":1672874,"avatar_url":"https://avatars3.githubusercontent.com/u/1672874?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanbrennan","html_url":"https://github.com/ivanbrennan","followers_url":"https://api.github.com/users/ivanbrennan/followers","following_url":"https://api.github.com/users/ivanbrennan/following{/other_user}","gists_url":"https://api.github.com/users/ivanbrennan/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanbrennan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanbrennan/subscriptions","organizations_url":"https://api.github.com/users/ivanbrennan/orgs","repos_url":"https://api.github.com/users/ivanbrennan/repos","events_url":"https://api.github.com/users/ivanbrennan/events{/privacy}","received_events_url":"https://api.github.com/users/ivanbrennan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-28T01:34:52Z","updated_at":"2018-05-28T01:34:52Z","closed_at":null,"author_association":"NONE","body":"When packaging a CLI tool that depends on [argcomplete](https://github.com/kislyuk/argcomplete), listing `python.packages.\"argcomplete\"` in `propagatedBuildInputs` allows the CLI build and run, but registering the shell completions requires running:\r\n```sh\r\n$ eval \"$(register-python-argcomplete my-cli)\"\r\n```\r\nand argcomplete's `register-python-argcomplete` command is not available.\r\n\r\nI can install argcomplete separately, e.g.\r\n```sh\r\n$ nix-env --install --attr nixos.python27Packages.argcomplete\r\n```\r\nbut this results in a different store path than what my CLI is using:\r\n```sh\r\n$ nix-store --query --requisites \\\r\n    /home/ivan/.nix-profile/bin/my-cli \\\r\n    | grep argcomplete\r\n/nix/store/azsqrf...-python2.7-argcomplete-1.9.4\r\n```\r\n```sh\r\n$ nix-store --query --requisites \\\r\n    /home/ivan/.nix-profile/bin/register-python-argcomplete \\\r\n    | grep argcomplete\r\n/nix/store/vv7zsf...-python2.7-argcomplete-1.9.4\r\n```\r\n\r\nWhat's the best way to approach this? Should I be looking for a way to make my CLI derivation expose the `register-python-argcomplete` command, or a way to install the same argcomplete store-path in my profile?"}}
{"actor":{"display_login":"ivanbrennan"}}