-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93792 from cab404/photon-utils
SL1ToPhoton: init at 0.1.3
- Loading branch information
Showing
4 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ lib | ||
, buildPythonApplication | ||
, fetchFromGitHub | ||
, pillow | ||
, pyside2 | ||
, numpy | ||
, pyphotonfile | ||
, shiboken2 | ||
, which | ||
}: | ||
let | ||
version = "0.1.3"; | ||
in | ||
buildPythonApplication rec { | ||
pname = "sl1-to-photon"; | ||
inherit version; | ||
|
||
src = fetchFromGitHub { | ||
owner = "fookatchu"; | ||
repo = "SL1toPhoton"; | ||
rev = "v${version}"; | ||
sha256 = "1hmb74rcky3nax4lxn7pw6lcd5a66fdbwrm11c84zb31xb51bakw"; | ||
}; | ||
|
||
propagatedBuildInputs = [ pyphotonfile pillow numpy pyside2 shiboken2 ]; | ||
|
||
format = "other"; | ||
|
||
installPhase = '' | ||
install -D -m 0755 SL1_to_Photon.py $out/bin/${pname} | ||
sed -i '1i#!/usr/bin/env python' $out/bin/${pname} | ||
''; | ||
|
||
meta = with lib; { | ||
maintainers = [ maintainers.cab404 ]; | ||
license = licenses.gpl3Plus; | ||
description = "Tool for converting Slic3r PE's SL1 files to Photon files for the Anycubic Photon 3D-Printer"; | ||
homepage = "https://github.com/fookatchu/SL1toPhoton"; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, pillow | ||
, numpy | ||
}: | ||
let | ||
version = "0.2.1"; | ||
in | ||
buildPythonPackage { | ||
pname = "pyphotonfile"; | ||
inherit version; | ||
propagatedBuildInputs = [ pillow numpy ]; | ||
|
||
src = fetchFromGitHub { | ||
owner = "fookatchu"; | ||
repo = "pyphotonfile"; | ||
rev = "v${version}"; | ||
sha256 = "1hh1fcn7q3kyk2413pjs18xnxvzrchrisbpj2cd59jrdp0qzgv2s"; | ||
}; | ||
|
||
meta = with lib; { | ||
maintainers = [ maintainers.cab404 ]; | ||
license = licenses.gpl3Plus; | ||
description = "Library for reading and writing files for the Anycubic Photon 3D-Printer"; | ||
homepage = "https://github.com/fookatchu/pyphotonfile"; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters