diff options
author | Malte Frank Gerdes <malte.f.gerdes@gmail.com> | 2022-04-07 17:15:28 +0200 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2022-04-07 22:32:01 +0200 |
commit | f14d43b367c52c31e63266539547b3daaf3fa7c8 (patch) | |
tree | 2ae42f731435bb557f5c9afc894f946ac29987fc /gnu/packages | |
parent | b4b93035c1c4dda16b8399fc77b6ef150831ef1d (diff) | |
download | guix-f14d43b367c52c31e63266539547b3daaf3fa7c8.tar.gz guix-f14d43b367c52c31e63266539547b3daaf3fa7c8.zip |
gnu: Add uranium.
* gnu/packages/engineering.scm (uranium): New variable.
Co-authored-by: Guillaume Le Vaillant <glv@posteo.net>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/engineering.scm | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index d8370f0cb0..0fadf3e1d1 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -120,7 +120,10 @@ #:use-module (gnu packages pretty-print) #:use-module (gnu packages protobuf) #:use-module (gnu packages python) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-crypto) + #:use-module (gnu packages python-science) + #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) @@ -3361,3 +3364,69 @@ Cura.") (description "This package contains binary data for Cura releases, like compiled translations. Prebuilt Firmware files are removed.") (license license:agpl3))) + +(define-public uranium + (package + (name "uranium") + (version "4.13.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Ultimaker/Uranium") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nyxm3fdyrsisqkxbqld66bljd852wnc1yc6i1lyvncwvzn8ai32")))) + (build-system cmake-build-system) + (native-inputs + (list doxygen + gettext-minimal + graphviz + pkg-config + python-pytest + python-mypy + python-certifi + python-twisted)) + (propagated-inputs + (list cura-binary-data + libarcus + python + python-cryptography + python-numpy + python-pyqt + python-scipy + python-shapely + python-trimesh + python-zeroconf + qtbase + qtdeclarative + qtgraphicaleffects + qtquickcontrols + qtquickcontrols2 + qtsvg)) + (arguments + `(;; FIXME: tests are disabled, because they cause an infinite loop. + #:tests? #f + #:configure-flags + ,#~(list (string-append "-DGETTEXT_MSGINIT_EXECUTABLE=" + #$(this-package-native-input "gettext-minimal") + "/bin/msginit") + (string-append "-DCURA_BINARY_DATA_DIRECTORY=" + #$(this-package-input "cura-binary-data"))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-uranium-plugin-path + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "UM/Application.py" + (("app_root =.*$") + (string-append "app_root = \"" + (assoc-ref outputs "out") "\"\n")) + (("app_root, \"share\", \"uranium\", \"plugins\"") + "app_root, \"lib\", \"uranium\", \"plugins\""))))))) + (home-page "https://github.com/Ultimaker/Uranium") + (synopsis "Python framework for building desktop applications") + (description "Uranium is a Python Framework for building 3D printing +related desktop applications using PyQt5. It belongs to the Cura project +from Ultimaker.") + (license license:lgpl3+))) |