-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poetry: don't use poetry2nix #209534
poetry: don't use poetry2nix #209534
Conversation
We should probably move |
It is a CLI tool for Python packaging. Python modules should use poetry-core as a build-time dependency instead.
@mweinelt beancount-ing-diba was the only remaining package using poetry instead of poetry-core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning this up!
If you want to to this (I'm totally 100% in disagreement with this PR) also remove me as a maintainer from the package as I want nothing to do with the python package sets. |
Also, this begs the question: What is even the purpose of having maintainers listed if you're going to continuously go against their wishes anyway? I've been clearly saying no to efforts like this in the past and @dotlambda is well aware of this. IMHO this is the exact opposite direction to what nixpkgs should go towards as I see the current Python maintenance model in nixpkgs as unsustainable, and for the lack of a better word to express it, insane. Additionally, as I have express before this results in leaking all of the dependencies of poetry via |
By who exactly? By what decree? |
Which package exactly? You're not listed as a maintainer of what is currently
I think it's working pretty well actually, as proven by e.g. the fact that we can keep a package like Home Assistant that has more than a thousand direct dependencies working.
By the people who mostly maintain the Python packages. See #python:nixos.org. |
I'm willing to concede on this even though I don't agree. I'm not especially interested in having this discussion time and time again.. Regardless the usability issue with |
This was also done for poetry as packaged using poetry2nix.
I tested poetry after removing |
That works. |
We cannot rely on upstreams lock files especially in the python world. The Fully relying on upsteams lock files create security and maintainer nightmares like #141368 PS I also don't agree on the poetry2nix workflow, mainly that it is being vendored into nixpkgs. Most similar tools live fully outside nixpkgs and get patches applied in nixpkgs if necessary, hopefully only until the next update, or are fully inside the nixpkgs tree. |
The use of poetry2nix within Nixpkgs is discouraged since we have a well-tested Python package set.
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes