jonringer / nix-template

Make creating nix expressions easy
Creative Commons Zero v1.0 Universal
205 stars 8 forks source link

Crash when project on pypi has no platform #47

Closed SuperSandro2000 closed 2 years ago

SuperSandro2000 commented 2 years ago
$ nix-template python --nixpkgs --pname avocado-framework --from-url https://pypi.org/project/avocado-framework
No [PATH] provided, defaulting to "pkgs/development/python-modules/"
Determining latest release for avocado-framework
[2022-04-27T11:18:19Z ERROR nix_template::url] Unable to parse response from pypi.io to json: Error { path: Path { segments: [Map { key: "info" }, Map { key: "platform" }] }, original: Error("invalid type: null, expected a string", line: 1, column: 12039) }
jonringer commented 2 years ago

This was taken care of in https://github.com/jonringer/nix-template/commit/e8998e61cc79ab2c6c04965bbc5d735033fc6aa4. I should probably do a point release