From 6c1d72327e8e3f21aeea39e5f1bb7bb06b7d00f7 Mon Sep 17 00:00:00 2001 From: paugier Date: Tue, 16 Jul 2024 15:11:59 +0200 Subject: [PATCH] Add doc/examples/clusters/gricad/python-fluidsim.scm --- doc/examples/clusters/gricad/manifest.scm | 1 + .../clusters/gricad/python-fluidsim.scm | 77 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 doc/examples/clusters/gricad/python-fluidsim.scm diff --git a/doc/examples/clusters/gricad/manifest.scm b/doc/examples/clusters/gricad/manifest.scm index 9796ac9a..d63ad72d 100644 --- a/doc/examples/clusters/gricad/manifest.scm +++ b/doc/examples/clusters/gricad/manifest.scm @@ -10,6 +10,7 @@ "python-fluidfft-p3dfft" "python-fluidfft-pfft" "python-pytest" + "python-fluidsim" ; build dependencies for editable build "meson-python" "python-pythran" diff --git a/doc/examples/clusters/gricad/python-fluidsim.scm b/doc/examples/clusters/gricad/python-fluidsim.scm new file mode 100644 index 00000000..e564f12c --- /dev/null +++ b/doc/examples/clusters/gricad/python-fluidsim.scm @@ -0,0 +1,77 @@ +(use-modules (guix) + ((guix licenses) #:prefix license:) + (guix build-system pyproject) + (guix build-system python) + (guix build-system meson) + (guix build utils) + (guix git-download) + (guix hg-download) + (guix utils) + (common python-packages) + (gnu packages) + (gnu packages mpi) + (gnu packages web) + (gnu packages rust) + (gnu packages rust-apps) + (gnu packages crates-io) + (gnu packages statistics) + (gnu packages bioinformatics) + (gnu packages build-tools) + (gnu packages pkg-config) + (gnu packages cmake) + (gnu packages cpp) + (gnu packages gcc) + (gnu packages python) + (gnu packages python-check) + (gnu packages python-web) + (gnu packages python-build) + (gnu packages python-xyz) + (gnu packages python-science) + (gnu packages check) + (gnu packages sphinx) + (common python-fluidfft) + (common python-fluiddyn)) + + +;; package python-fluidsim +(define-public python-fluidsim + (package + (name "python-fluidsim") + (version "0.8.1") + (source + (origin + (method hg-fetch) + (uri + (hg-reference + (url "https://foss.heptapod.net/fluiddyn/fluidsim") + (changeset "62c4dbe4f786"))) + (sha256 + (base32 "0prbwgajwnl85gibz2xyl78fzz3ika6sbf6iw0swr3akshsdbhlg")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-fluidfft + python-fluidsim-core + python-h5netcdf + python-h5py + python-ipython + python-matplotlib + python-mpi4py + python-pyfftw + python-pymech + python-rich + python-scipy + python-transonic + python-xarray + )) + (arguments '(#:phases (modify-phases %standard-phases + ; On patche le HOME + (add-before 'build 'patch-HOME-path + (lambda _ + (setenv "HOME" (getenv "out")) + )) + ;; On remove la phase de check et de sanity-check + (delete 'check) + (delete 'sanity-check)))) + (home-page "") + (synopsis "Framework for studying fluid dynamics with simulations.") + (description "Framework for studying fluid dynamics with simulations.") + (license #f)))