Python: autogenerate PyPI source data#14927
Conversation
|
So far it only creates the JSON data. License parsing is something for later. |
d9fe0c3 to
774e101
Compare
|
|
f9d8007 to
4317177
Compare
b4cac8e to
7edbd75
Compare
cedaefb to
73a0897
Compare
- `name` should not include the version. - `version` is optional. When given, the derivation is made for this specific version. Otherwise the latest version is used. - Custom `src` can still be given.
|
If this proves to be too gnarly, I was thinking of a more lightweight option, which is to introduced a new |
|
A function like Or we could have What we need is to find an agreement on what kind of data we want to have in NIxpkgs and what not. |
|
@FRidh explicitly picking the version doesn't seem overly onerous, since we do it everywhere else. The other question is a much bigger one though 😄 |
|
@copumpkin actually, having a ( |
|
fetchPyPI: |
|
#15007 is an alternative to the PR where I use a separate function, |
Recently PyPI changed their url scheme. Therefore, when a package is updated the entire url needs to be updated. That was it for me. I think we need a way to autogenerate PyPI source data. See also issue #11587. I recommend we discuss autogenerating PyPI data in this issue, and discuss in this PR only implementation details.
To do:
buildPythonPackagePossible improvements:
pypi ? Falseoption to determine whether to use PyPI or not. Currently it is determined automatically.Regressions: