Adding keyring packages to Poetry?

Hi there,

I’m trying to add the PyPi package to poetry in nixpkgs. I can’t fetch private packages hosted on GCP without it. I’ve tried just about every permutation of overridePythonAttrs I can think of but it won’t budge.

Any suggestions?

I’m not sure what you’re trying to accomplish in general here, but maybe withPackages is the right tool for your usecase?

Maybe you had something like:

with pkgs; [

This won’t work in many cases! The three tools are completely separated and may only know about each other incidentally, for example in user profiles.

with pkgs; [
  python3.withPackages( ps: with ps; [
  ] )

This will build an environment where all these packages are installed in site-packages, which is probably what you need. AFAICT, the package you’re referring to is not a poetry plugin, those have to be installed with poetry.withPlugins.

1 Like