I’m trying to add the keyrings.google-artifactregistry-auth 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.
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; [
poetry
python3
python3Packages.keyrings-google-artifactregistry-auth
]
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; [
poetry-core
keyrings-google-artifactregistry-auth
] )
]
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.