{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14927","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14927/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14927/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14927/events","html_url":"https://github.com/NixOS/nixpkgs/pull/14927","id":150561862,"number":14927,"title":"Python: autogenerate PyPI source data","user":{"login":"FRidh","id":2129135,"avatar_url":"https://avatars.githubusercontent.com/u/2129135?v=3","gravatar_id":"","url":"https://api.github.com/users/FRidh","html_url":"https://github.com/FRidh","followers_url":"https://api.github.com/users/FRidh/followers","following_url":"https://api.github.com/users/FRidh/following{/other_user}","gists_url":"https://api.github.com/users/FRidh/gists{/gist_id}","starred_url":"https://api.github.com/users/FRidh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRidh/subscriptions","organizations_url":"https://api.github.com/users/FRidh/orgs","repos_url":"https://api.github.com/users/FRidh/repos","events_url":"https://api.github.com/users/FRidh/events{/privacy}","received_events_url":"https://api.github.com/users/FRidh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/2.status:%20work-in-progress","name":"2.status: work-in-progress","color":"e6e6e6"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20policy%20discussion","name":"6.topic: policy discussion","color":"fef2c0"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20python","name":"6.topic: python","color":"fef2c0"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/9.needs:%20changelog","name":"9.needs: changelog","color":"eb6420"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/9.needs:%20clean-up","name":"9.needs: clean-up","color":"eb6420"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/9.needs:%20documentation","name":"9.needs: documentation","color":"eb6420"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/9.needs:%20feedback","name":"9.needs: feedback","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"FRidh","id":2129135,"avatar_url":"https://avatars.githubusercontent.com/u/2129135?v=3","gravatar_id":"","url":"https://api.github.com/users/FRidh","html_url":"https://github.com/FRidh","followers_url":"https://api.github.com/users/FRidh/followers","following_url":"https://api.github.com/users/FRidh/following{/other_user}","gists_url":"https://api.github.com/users/FRidh/gists{/gist_id}","starred_url":"https://api.github.com/users/FRidh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRidh/subscriptions","organizations_url":"https://api.github.com/users/FRidh/orgs","repos_url":"https://api.github.com/users/FRidh/repos","events_url":"https://api.github.com/users/FRidh/events{/privacy}","received_events_url":"https://api.github.com/users/FRidh/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-04-23T14:51:21Z","updated_at":"2016-04-25T11:48:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/14927","html_url":"https://github.com/NixOS/nixpkgs/pull/14927","diff_url":"https://github.com/NixOS/nixpkgs/pull/14927.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/14927.patch"},"body":"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.\r\n\r\nTo do:\r\n- [ ] test whether all packages build (https://headcounter.org/hydra/jobset/iElectric/python-wip, ~30 failing)\r\n- [ ] document changes to `buildPythonPackage`\r\n- [ ] announce changes\r\n- [x] integrate meta.description, meta.homepage and meta.license\r\n\r\nPossible improvements:\r\n- [ ] add a `pypi ? False` option to determine whether to use PyPI or not. Currently it is determined automatically.\r\n- [ ] parse licenses\r\n\r\nRegressions:\r\n- packages that specify both name and version, and have the version already included in the name will show the version twice now.  "},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/214279330","html_url":"https://github.com/NixOS/nixpkgs/pull/14927#issuecomment-214279330","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14927","id":214279330,"user":{"login":"copumpkin","id":2623,"avatar_url":"https://avatars.githubusercontent.com/u/2623?v=3","gravatar_id":"","url":"https://api.github.com/users/copumpkin","html_url":"https://github.com/copumpkin","followers_url":"https://api.github.com/users/copumpkin/followers","following_url":"https://api.github.com/users/copumpkin/following{/other_user}","gists_url":"https://api.github.com/users/copumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/copumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copumpkin/subscriptions","organizations_url":"https://api.github.com/users/copumpkin/orgs","repos_url":"https://api.github.com/users/copumpkin/repos","events_url":"https://api.github.com/users/copumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/copumpkin/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T11:48:47Z","updated_at":"2016-04-25T11:48:47Z","body":"If this proves to be too gnarly, I was thinking of a more lightweight option, which is to introduced a new `fetchPyPI` fixed-output derivation that we can use for all our `src` attributes, without changing anything else. The fetcher would know how to figure out the correct URL and but would otherwise still produce the same tarballs as we were getting before."}}