Packaging/Python: Difference between revisions
imported>Milahu cleanup No module named 'pkg_resources' |
imported>Milahu add HTTP 404 with fetchPypi |
||
| Line 72: | Line 72: | ||
Please report such issues at https://github.com/NixOS/nixpkgs/issues | Please report such issues at https://github.com/NixOS/nixpkgs/issues | ||
=== HTTP 404 with fetchPypi === | |||
example error: | |||
<blockquote> | |||
curl: (22) The requested URL returned error: 404<br> | |||
error: cannot download stt-1.2.0.tar.gz from any mirror | |||
</blockquote> | |||
when we look at https://pypi.org/project/stt/#files we see only <code>*.whl</code> files | |||
this means, this is a binary release, and we must build the package from source | |||
replace this | |||
<pre> | |||
src = fetchPypi { | |||
inherit pname version; | |||
sha256 = ""; | |||
}; | |||
</pre> | |||
with this | |||
<pre> | |||
src = fetchFromGitHub { | |||
owner = "todo"; | |||
repo = "todo"; | |||
rev = "todo"; | |||
sha256 = ""; | |||
}; | |||
</pre> | |||
== setup.py == | == setup.py == | ||