Subject: [PATCH 1/2] gnu: Add python-pyphotonfile.

From: phodina <[email-masked]>
Date: Sun, 03 Oct 2021 07:41:20 +0000

* gnu/packages/python-xyz.scm (python-pyphotonfile): New variable.

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 14f5fdef54..5f4df4c7fb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23237,6 +23237,31 @@ qvarious formats: PDF, PostScript, PNG and even SVG.")
 existing Hunspell hyphenation dictionaries.")
     (license (list license:gpl2 license:lgpl2.1 license:mpl1.1))))

+(define-public python-pyphotonfile
+  (package
+    (name "python-pyphotonfile")
+    (version "0.2.1")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/fookatchu/pyphotonfile")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "1hh1fcn7q3kyk2413pjs18xnxvzrchrisbpj2cd59jrdp0qzgv2s"))))
+    (build-system python-build-system)
+    (inputs `(("python-numpy" ,python-numpy)
+              ("python-pillow" ,python-pillow)))
+    (home-page "https://github.com/fookatchu/pyphotonfile")
+    (synopsis "Library for Anycubic Photon 3D-Printer")
+    (description "This package provides library used for manipulating Photon-
+and cbddlp-files created for the Anycubic Photon 3D-Printer and compatibles
+(e.g. Elegoo Mars, etc.).  Currently it supports removing and adding new
+layers as well as changing global parameters like the exposure time, etc.")
+    (license license:gpl3)))
+
 (define-public python-intelhex
   (package
     (name "python-intelhex")
--
2.32.0