Repository navigation
Conversation
…escape-hatch sometimes there are valid reasons to not have a match between pname and the resulting package.
Explain. The package name should always match the name on PyPI.
That's not a good idea in the Python package set and should be handled via
What's wrong with dontCheckPythonMetadata there? |
TIL
First few examples I found with grep: This idea is not limited to cuda or rocm, but can be about any kind of variant the maintainer want to be able to tell apart by pname and not just input hash.
Increased roundstrip times during testing, I prefer things fail early. If |
The docs say that they should be the same, and so should the attribute name.
Right but is there a good reason to do so for python3Packages, where you always need to choose your variant inside overrideScope? |
I dislike attributes like pytorchWithCuda. But often i check when i apply a change in
alternative here |
|
One reason I'm reluctant to add this is that people will use this rather fixing the pname. |
|
If you like some variant having a different pname you can set |
I think we both agree that such a hack should not pass review 😆 |
Sometimes there are valid reasons to not have a match between pname and the resulting package.
This adds
pythonMetadataCheckNameas a way to set the package name thatpythonMetadataCheckHookchecks instead of relying on pname.Reasons one might want to have a mismatch between pname and the package name:
*-cudaor*-rocmpname variantsThis was tested on pytest.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.