diff --git a/glicid-non-free/packages/staging.scm b/glicid-non-free/packages/staging.scm index a87cf91..12ae19c 100644 --- a/glicid-non-free/packages/staging.scm +++ b/glicid-non-free/packages/staging.scm @@ -1,137 +1,180 @@ (define-module (glicid-non-free packages staging) - #:use-module (guix licenses) - #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix utils) - #:use-module (guix build utils) - #:use-module (guix build-system cmake) - #:use-module (guix build-system gnu) - #:use-module (gnu packages) - #:use-module (gnu packages pkg-config) - #:use-module (gnu packages qt) - #:use-module (gnu packages gl) - #:use-module (gnu packages boost) - #:use-module (gnu packages algebra) - #:use-module (gnu packages gdb) - #:use-module (gnu packages sqlite) - #:use-module (gnu packages image-processing) - #:use-module (gnu packages graphics) - #:use-module (gnu packages maths) - #:use-module (gnu packages mpi) - #:use-module (gnu packages python) + #:use-module (guix packages) + #:use-module (guix build-system python) + #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages python-xyz) - #:use-module (gnu packages sphinx) - #:use-module (gnu packages commencement) - #:use-module (gnu packages graphviz) - #:use-module (gnu packages multiprecision) - #:use-module (glicid packages mpi) - #:use-module (glicid utils)) + #:use-module (guix-science packages jupyter) + #:use-module (gnu packages python-science) + #:use-module (gnu packages machine-learning) + #:use-module (gnu packages version-control) + #:use-module (gnu packages check) + #:use-module (gnu packages xml) + #:use-module (gnu packages python-web) + #:use-module (gnu packages python-build) + #:use-module (gnu packages databases) + #:use-module (gnu packages geo) + #:use-module (gnu packages python-check) +) -(define-public loki - (package - (name "loki") - (version "0.1.7") - (source (origin - (method url-fetch) - (uri (string-append - "https://downloads.sourceforge.net/project/loki-lib/Loki/Loki%200.1.7/loki-" - version ".zip")) - (sha256 - (base32 - "0p23k4dipk5nnfpvhhqj9apz8rhnd62qdydjmzx8q78sxpwims4w")))) - (build-system gnu-build-system) - (inputs `(("gcc-toolchain" ,gcc-toolchain))) - (synopsis - "Loki is a C++ library of designs, containing flexible implementations of common design patterns and idioms.") - (description - "Loki is the name of a C++ software library written by Andrei Alexandrescu as part of his book Modern C++ Design. - The library makes extensive use of C++ template metaprogramming and implements several commonly used tools: typelist, functor, singleton, smart pointer, object factory, visitor and multimethods.") - (home-page "http://loki-lib.sourceforge.net/index.php?n=Main.HomePage") - (license gpl3+))) +;(use-modules (guix packages) +; (guix download) +;) -(define-public yade - (package - (name "yade") - (version "2022.01a") - (source (origin - (method url-fetch) - (uri (string-append - "https://gitlab.com/yade-dev/trunk/-/archive/2022.01a/trunk-" - version ".tar.gz")) - (sha256 - (base32 - "0k4hnvi70cqzl0q54kkbij6jwxydhfwcacp9s49n3fkaf1dihxiv")))) - (build-system cmake-build-system) - (arguments - `(#:configure-flags (list "-DENABLE_POTENTIAL_BLOCKS=OFF" - (string-append "-DCMAKE_INSTALL_PREFIX=" - (assoc-ref %outputs "out")) - (string-append "-DQGLVIEWER_INCLUDE_DIR=" - (assoc-ref %build-inputs - "libqglviewer"))) - ;; (string-append "-DQGLVIEWER_INCLUDE_DIR=" - ;; libqglviewer)))) - #:phases (modify-phases %standard-phases - (add-after 'unpack 'post-unpack - (lambda* (#:key outputs inputs #:allow-other-keys) - (mkdir-p "./build") - (chdir "./build"))) - (replace 'configure - (lambda* (#:key inputs outputs configure-flags - #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - (apply invoke "cmake" "../" configure-flags))))) - #:tests? #f)) - ;; (lambda _ (invoke - ;; "cmake" "../trunk" - ;; configure-flags)))))) - (propagated-inputs `(("gdb" ,gdb) - ("sqlite" ,sqlite) - ("openmpi" ,openmpi) - ("python" ,python) - ("python-numpy" ,python-numpy) - ("python-matplotlib" ,python-matplotlib) - ("python-sphinx" ,python-sphinx) - ("python-ipython" ,python-ipython) - ("python-mpi4py" ,python-mpi4py) - ("python-mpmath" ,python-mpmath) - ("python-pygraphviz" ,python-pygraphviz) - ("python-xlib" ,python-xlib) - ("python-future" ,python-future) - ("python-pyqt" ,python-pyqt) - ("python-pyqtwebengine" ,python-pyqtwebengine) - ("python-qtpy" ,python-qtpy))) - (inputs `(("boost" ,boost) - ("qtbase-5" ,qtbase-5) - ;; ("qt" ,qt) - ("freeglut" ,freeglut) - ("gts" ,gts) - ("pkg-config" ,pkg-config) - ("libqglviewer" ,libqglviewer) - ("eigen" ,eigen) - ;; ("loki" ,loki) - ;; ("vtk" ,vtk) -; ("qtwebkit" ,qtwebkit) - ("openblas" ,openblas) - ("suitesparse" ,suitesparse) - ("gcc-toolchain" ,gcc-toolchain) - ("metis" ,metis) - ("cgal" ,cgal) - ("qtsvg" ,qtsvg) - ("qtwebengine" ,qtwebengine) - ("mpfr" ,mpfr))) +(define-public python-pytest-json-report + (package + (name "python-pytest-json-report") + (version "1.5.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "pytest-json-report" version)) + (sha256 + (base32 + "1phmqr6x78yygpr79mkp43xnxrm6221rwwh06xgrp8aig1j3rpid")))) + (build-system python-build-system) + (propagated-inputs (list python-pytest python-pytest-metadata)) + (home-page "https://github.com/numirias/pytest-json-report") + (synopsis "A pytest plugin to report test results as JSON files") + (description + "This package provides a pytest plugin to report test results as JSON files") + (license license:expat)) +) - (synopsis - "Yade is an extensible open-source framework for discrete numerical models, focused on Discrete Element Method.") - (description - "Yade is an extensible open-source framework for discrete numerical models, focused on Discrete Element Method. The computation parts are written in c++ using flexible object model, allowing independent implementation of new algorithms and interfaces. Python is used for rapid and concise scene construction, simulation control, postprocessing and debugging.") - (home-page "https://www.yade-dem.org/") - (license gpl3+))) +(define-public python-obspy + (package + (name "python-obspy") + (version "1.4.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "obspy" version)) + (sha256 + (base32 + "01jwzsjym35vc851hk5myd9qw2kjvp0mvjvkh6q34ms8k8fnwsik")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) ;;; try to access service.iris.edu + + (propagated-inputs (list python-decorator + python-lxml + python-matplotlib + python-numpy + python-requests + python-scipy + python-setuptools + python-sqlalchemy)) + (native-inputs (list python-packaging python-pyproj python-pytest + python-pytest-json-report)) + (home-page "https://www.obspy.org") + + (synopsis "ObsPy - a Python framework for seismological observatories.") + (description "ObsPy - a Python framework for seismological observatories.") + (license #f)) +) + +(define-public python-seisbench + (package + (name "python-seisbench") + (version "0.3.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "seisbench" version)) + (sha256 + (base32 + "1n04pr8ri06q6ngyi8wnw13vhhw2w7kkhn87zrkbjjw49v157xzg")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'check)(delete 'sanity-check)))) + + (propagated-inputs (list python-h5py + python-nest-asyncio + python-numpy + python-obspy + python-pandas + python-scipy + python-pytorch + python-tqdm)) + (native-inputs (list python-black + python-flake8 + python-isort + python-pre-commit + python-pytest + python-pytest-asyncio)) + (home-page "") + (synopsis "The seismological machine learning benchmark collection") + (description "The seismological machine learning benchmark collection") + (license #f)) +) + + +(define-public python-seisbench+cuda + (package + (inherit python-seisbench) + (name "python-seisbench+cuda") + ) +) + +(define-public python-esa-ptr + (package + (name "python-esa-ptr") + (version "1.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "esa_ptr" version)) + (sha256 + (base32 + "1jjny1jsmircny4v5vyqb1hwan839gxdmwljh647b895qvqgr0lb")))) + (build-system python-build-system) + (home-page "https://juigitlab.esac.esa.int/python/ptr") + (synopsis "ESA Planning Timeline Request package") + (description "ESA Planning Timeline Request package") + (license #f))) + + +#! (define-public python-spiceypy + (package + (name "python-spiceypy") + (version "5.1.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "spiceypy" version)) + (sha256 + (base32 + "10n0ia9q8f2fs7g8sycjvzgqmhl838vx1yb4f6jn5fl17q6yg7y9")))) + (build-system python-build-system) + (propagated-inputs (list python-numpy)) + (native-inputs (list python-black + python-build + python-codecov + python-coverage + python-numpy + python-pandas + python-pytest + python-twine + python-wheel)) + (home-page "https://github.com/AndrewAnnex/SpiceyPy") + (synopsis "A Python Wrapper for the NAIF CSPICE Toolkit") + (description + "This package provides a Python Wrapper for the NAIF CSPICE Toolkit") + (license license:expat)) +) + +(package + (name "python-planetary-coverage") + (version "1.0.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "planetary_coverage" version)) + (sha256 + (base32 + "17xv4i9k5h4p9bc5j2x3xa2malh77b4wnckk0kyghz5y560hbds4")))) + (build-system python-build-system) + (propagated-inputs (list python-esa-ptr python-matplotlib python-numpy + python-pillow python-spiceypy)) + (home-page "https://juigitlab.esac.esa.int/python/planetary-coverage") + (synopsis "Planetary coverage package") + (description "Planetary coverage package") + (license #f)) +!# -(define-public yade-glicid-waves - (package - (inherit (transform-package ((instead-of "openmpi-glicid-waves" openmpi) - yade) "waves")) - (name "yade-glicid-waves"))) -yade-glicid-waves \ No newline at end of file