diff options
| author | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-12-22 15:31:31 +0100 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2026-02-12 18:58:12 +0100 |
| commit | 78b3860f48d10fd2955bf63dabfcaa92fea52db6 (patch) | |
| tree | 80a277d2834cc5cac73d6bd72e23e06c3d6874ec /gnu/packages/python-science.scm | |
| parent | 91ea95eff8ec66da642d128e546b1a0bad7a7cc8 (diff) | |
gnu: Add python-quasielasticbayes.
* gnu/packages/python-science.scm (python-quasielasticbayes): New variable.
Change-Id: I4a80e53c2f4c058b8678b599d9a4a3d7752efedb
Diffstat (limited to 'gnu/packages/python-science.scm')
| -rw-r--r-- | gnu/packages/python-science.scm | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 854af262145..d2d5755bb00 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm | |||
| @@ -6823,6 +6823,50 @@ simulating inelastic neutron scattering (INS) from force constants. It can | |||
| 6823 | read output from CASTEP and Phonopy and calculate phonon frequencies, | 6823 | read output from CASTEP and Phonopy and calculate phonon frequencies, |
| 6824 | eigenvectors, and structure factors.") | 6824 | eigenvectors, and structure factors.") |
| 6825 | (license license:gpl3+))) | 6825 | (license license:gpl3+))) |
| 6826 | |||
| 6827 | (define-public python-quasielasticbayes | ||
| 6828 | (package | ||
| 6829 | (name "python-quasielasticbayes") | ||
| 6830 | (version "0.3.0") | ||
| 6831 | (source | ||
| 6832 | (origin | ||
| 6833 | (method git-fetch) | ||
| 6834 | (uri (git-reference | ||
| 6835 | (url "https://github.com/mantidproject/quasielasticbayes") | ||
| 6836 | (commit (string-append "v" version)))) | ||
| 6837 | (file-name (git-file-name name version)) | ||
| 6838 | (sha256 | ||
| 6839 | (base32 "05va9qygw4a9app61spw6hqmbn9cq09w0dik9g6xvzpwcmfb7yx4")))) | ||
| 6840 | (build-system meson-build-system) | ||
| 6841 | (arguments | ||
| 6842 | (list | ||
| 6843 | #:imported-modules `((guix build python-build-system) | ||
| 6844 | ,@%meson-build-system-modules) | ||
| 6845 | #:modules '((guix build meson-build-system) | ||
| 6846 | ((guix build python-build-system) #:prefix py:) | ||
| 6847 | (guix build utils)) | ||
| 6848 | #:phases | ||
| 6849 | #~(modify-phases %standard-phases | ||
| 6850 | (add-after 'install 'check | ||
| 6851 | (lambda* (#:key tests? inputs outputs #:allow-other-keys) | ||
| 6852 | (when tests? | ||
| 6853 | (py:add-installed-pythonpath inputs outputs) | ||
| 6854 | (invoke "pytest" "../source/src/quasielasticbayes/test"))))))) | ||
| 6855 | (native-inputs | ||
| 6856 | (list gfortran | ||
| 6857 | python | ||
| 6858 | python-numpy | ||
| 6859 | python-pytest)) | ||
| 6860 | (propagated-inputs | ||
| 6861 | (list python-numpy)) | ||
| 6862 | (home-page "https://github.com/mantidproject/quasielasticbayes") | ||
| 6863 | (synopsis "Bayesian analysis for quasi-elastic neutron scattering") | ||
| 6864 | (description | ||
| 6865 | "This package provides Python wrappers for Fortran routines used to | ||
| 6866 | perform Bayesian analysis on quasi-elastic neutron-scattering data. The | ||
| 6867 | original Fortran code was written by Dr. Devinder Sivia in the 1980s.") | ||
| 6868 | (license license:bsd-3))) | ||
| 6869 | |||
| 6826 | ;;; | 6870 | ;;; |
| 6827 | ;;; Avoid adding new packages to the end of this file. To reduce the chances | 6871 | ;;; Avoid adding new packages to the end of this file. To reduce the chances |
| 6828 | ;;; of a merge conflict, place them above by existing packages with similar | 6872 | ;;; of a merge conflict, place them above by existing packages with similar |
