From beb817f850a334ecc3b773499bbd4845ab6d835f Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Fri, 1 Jan 2021 15:17:37 +0100 Subject: [PATCH 3/6] gnu: Add python-pivy. * gnu/packages/python-xyz.scm (python-pivy): New variable. --- gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d07c91121a..183cfa2894 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -175,6 +175,7 @@ #:use-module (gnu packages shells) #:use-module (gnu packages sphinx) #:use-module (gnu packages ssh) + #:use-module (gnu packages swig) #:use-module (gnu packages terminals) #:use-module (gnu packages tex) #:use-module (gnu packages texinfo) @@ -23238,3 +23239,46 @@ process.") "Gamera is a toolkit for building document image recognition systems.") (home-page "https://gamera.informatik.hsnr.de/") (license license:gpl2+))) + +(define-public python-pivy + (package + (name "python-pivy") + (version "0.6.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/coin3d/pivy") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; Tests are broken + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-cmake-include-dirs + (lambda _ + ;; Patch buildsystem to respect Coin3D include directory + (substitute* "CMakeLists.txt" + (("\\$\\{SoQt_INCLUDE_DIRS}") + "${Coin_INCLUDE_DIR};${SoQt_INCLUDE_DIRS}")) + #t))))) + (native-inputs + `(("cmake" ,cmake) + ("swig" ,swig))) + (inputs + `(("python-wrapper" ,python-wrapper) + ("qtbase" ,qtbase) + ("libxi" ,libxi) + ("libice" ,libice) + ("soqt" ,soqt) + ("glew" ,glew) + ("coin3D-4" ,coin3D-4))) + (home-page "https://github.com/coin3d/pivy") + (synopsis "Python bindings to Coin3D") + (description + "Pivy provides python bindings for Coin, a 3D graphics library with an +Application Programming Interface based on the Open Inventor 2.1 API.") + (license license:isc))) -- 2.29.2