mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 11:36:16 +01:00
28 lines
587 B
Nix
28 lines
587 B
Nix
|
{
|
||
|
python3,
|
||
|
lib,
|
||
|
thingiverse-downloader,
|
||
|
}:
|
||
|
python3.pkgs.buildPythonApplication rec {
|
||
|
pname = "thingiverse-downloader";
|
||
|
version = "unknown";
|
||
|
format = "other";
|
||
|
|
||
|
src = thingiverse-downloader;
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/bin
|
||
|
echo "#!/bin/python3" | cat - $src/thingiverse_downloader.py > $out/bin/thingiverse-downloader
|
||
|
chmod +x $out/bin/thingiverse-downloader
|
||
|
wrapProgram $out/bin/thingiverse-downloader \
|
||
|
--prefix PYTHONPATH : "$PYTHONPATH"
|
||
|
'';
|
||
|
|
||
|
propagatedBuildInputs = with python3.pkgs; [
|
||
|
requests
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
};
|
||
|
}
|