buildPythonPackage fails with "404: Not Found"
exarkun opened this issue · comments
Jean-Paul Calderone commented
using mach-nix bdc97ba and pypi-deps-db 347b6270718ed2191078c852329fd32f04dd34ed building buildPythonPackage ...
fails:
error: unable to download 'https://github.com/DavHau/nix-pypi-fetcher/tarball/9baa976328fe4fc93d89906f92566a5faeedd1a1': HTTP error 404
response body:
404: Not Found
(use '--show-trace' to show detailed location information)
DavHau suggests the mach-nix code generator may need to be updated to reflect the switch to nix-pypi-fetcher-2 in pypi-deps-db
Adam Griffiths commented
This is currently broken in the latest official release (3.5.0), which is specified by the installation instructions on the front-page.
error: unable to download 'https://github.com/DavHau/nix-pypi-fetcher/tarball/8c1b9cef5570d9d9bfef9eb10920ee5aec712b4c': HTTP error 404
It is possible to switch to a newer version in Git, the missing tarball breaks things for existing users.
Example fix for anyone looking:
...
# Fri May 19 20:54:50 UTC 2023 - update sdist + wheel
pypiDataRev = "b8c61fb930c9a9f95057b717bc7c701196f2ee4e";
pypiDataSha256 = "0fdn8yvmvghi5rxmmmjsnxlvg1n96m8m4my7lm3rnszxg7j4ckdr";
mach-nix = import (builtins.fetchGit {
url = "https://github.com/DavHau/mach-nix";
#ref = "refs/tags/3.5.0";
rev = "8d903072c7b5426d90bc42a008242c76590af916";
}) {
inherit pypiDataRev pypiDataSha256;
};
...