dotfiles/overlays/thingiverse-downloader/thingiverse-downloader.nix

28 lines
587 B
Nix
Raw Normal View History

{
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; {
};
}