[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/11: gnu: Add python-pynest2d.
From: |
guix-commits |
Subject: |
10/11: gnu: Add python-pynest2d. |
Date: |
Thu, 7 Apr 2022 16:40:23 -0400 (EDT) |
glv pushed a commit to branch master
in repository guix.
commit 4926c104760c62609b5ad32fff80b28070ec24e7
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Thu Apr 7 22:12:58 2022 +0200
gnu: Add python-pynest2d.
* gnu/packages/engineering.scm (python-pynest2d): New variable.
---
gnu/packages/engineering.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index a1f96771a1..ff528af8fb 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -3463,6 +3463,54 @@ from Ultimaker.")
problem. It was inspired from the SVGNest Javascript library.")
(license license:lgpl3)))
+(define-public python-pynest2d
+ (package
+ (name "python-pynest2d")
+ (version "4.12.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Ultimaker/pynest2d")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0jhqfylg6vzlbz9rqs981bg6y8s18iklw1p8hmax72xq2c7561s1"))))
+ (build-system cmake-build-system)
+ (native-inputs
+ (list pkg-config))
+ (inputs
+ (list boost
+ clipper
+ libnest2d-for-cura
+ nlopt
+ python
+ python-sip-4))
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'fix-clipper-detection
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "CLIPPER_PATH" (assoc-ref inputs "clipper"))))
+ (add-before 'configure 'fix-python-sitearch
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((path (string-append (assoc-ref outputs "out")
+ "/lib/python"
+ ,(version-major+minor
+ (package-version python))
+ "/site-packages")))
+ (substitute* "cmake/FindSIP.cmake"
+ (("\\$\\{_process_output\\} Python3_SITEARCH")
+ (string-append path " Python3_SITEARCH"))
+ (("\\$\\{_process_output\\} Python3_SITELIB")
+ (string-append path " Python3_SITELIB")))))))))
+ (home-page "https://github.com/Ultimaker/pynest2d")
+ (synopsis "Python bindings for libnest2d")
+ (description
+ "This package contains CPython bindings for libnest2d-for-cura.")
+ (license license:lgpl3+)))
+
(define-public libcharon
(package
(name "libcharon")
- branch master updated (7409f246e2 -> b749329888), guix-commits, 2022/04/07
- 01/11: gnu: Add libarcus., guix-commits, 2022/04/07
- 04/11: gnu: Add python-pyinstrument., guix-commits, 2022/04/07
- 06/11: gnu: Add uranium., guix-commits, 2022/04/07
- 11/11: gnu: Add cura., guix-commits, 2022/04/07
- 07/11: gnu: Add libcharon., guix-commits, 2022/04/07
- 02/11: gnu: Add cura-engine., guix-commits, 2022/04/07
- 03/11: gnu: Add cura-binary-data., guix-commits, 2022/04/07
- 05/11: gnu: Add python-trimesh., guix-commits, 2022/04/07
- 08/11: gnu: Add libsavitar., guix-commits, 2022/04/07
- 10/11: gnu: Add python-pynest2d.,
guix-commits <=
- 09/11: gnu: Add libnest2d-for-cura., guix-commits, 2022/04/07