Closed mweinelt closed 6 months ago
Is there more context available to the name normalization reasoning?
As a user, the 1:1 mapping between pypi packages and nixpkgs package name is quite convenient. It allows me to copy-paste things around.
We follow PEP 503 normalization rules, according to our python contributing guidelines.
Attribute names in python-packages.nix as well as pnames should match the library's name on PyPI, but be normalized according to PEP 0503. This means that characters should be converted to lowercase and . and _ should be replaced by a single - (foo-bar-baz instead of Foo__Bar.baz). If necessary, pname has to be given a different value within fetchPypi.
Originated in https://github.com/NixOS/nixpkgs/pull/45822
for every entry there is now an PR ongoing, except for two package:
pysideShiboken
pysideTools
any idea what to do with them? they seem perfectly fine.
@adisbladis can you please check if all packages are correct? or some new unnormalized sneaked in?
otherwise we can close this issue.
I did myself a "quick" check and came up with this list of remaining packages:
FYI: @dotlambda I just sorted your list. Otherwise documenting the progress is hard. Hope that is ok.
@dotlambda can you please verify again. I think we can close this issue. (staging not yet merged)
found some more packages:
all the lists in this thread are now done. staging is merged into master.
Therefore I consider this done.
Python attribute and pnames should be normalized according to https://packaging.python.org/en/latest/specifications/name-normalization/#normalization.
The following list of names, that need work, was provided by @adisbladis in the nixpkgs python room.
Cc'ing people who are currently doing the work in the python ecosystem. @dotlambda @fabaff @SuperSandro2000 @tjni @natsukium
The workflow would be to
pkgs/top-level/python-packages.nix
pkgs/top-level/python-aliases.nix
for the old attribute namepython311Packages.newname: rename from oldname