diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-02-05 08:24:38 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:58 +0100 |
| commit | 215cdb12d0588c0f3ec0366a1bf8d29ca1fbe571 (patch) | |
| tree | 6360c2fab61606e36093fb1f9167b59f357c57c7 /gnu | |
| parent | 79cffdc00fa8d64fda006fcf988777d95f8410eb (diff) | |
gnu: Add python-scitools-mo-pack.
* gnu/packages/geo.scm (python-scitools-mo-pack): New variable.
Change-Id: I3a03acd4fbbccc69a72373c7e34e6d23f7fd9426
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/geo.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index dbae2617a8..d335f49b6e 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -2865,6 +2865,48 @@ tabular representations become unwieldy and inefficient. Iris implements a data model based on the CF conventions.") (license license:lgpl3+))) +(define-public python-scitools-mo-pack + (package + (name "python-scitools-mo-pack") + (version "0.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SciTools/mo_pack") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zg6vsicvx1yxw0vky71dax3nnfk8yl6li4vnwvd50smxm3lv6hj")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags #~(list "src/mo_pack/tests") + #:phases + #~(modify-phases %standard-phases + (add-before 'compile-bytecode 'cleanup-installed-tests + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((site (site-packages inputs outputs))) + (delete-file-recursively + (string-append site "/mo_pack/tests"))) + (for-each delete-file + (list "src/mo_pack/__init__.py" + "src/mo_pack/_version.py"))))))) + (native-inputs + (list python-cython + python-pytest + python-setuptools + python-setuptools-scm)) + (inputs (list libmo-unpack)) + (propagated-inputs (list python-numpy)) + (home-page "https://github.com/SciTools/mo_pack") + (synopsis "Python wrapper for @code{libmo_unpack}") + (description + "This package provide Python bindings to the C library +@code{libmo_unpack} which contains packing methods used to encode and decode +the data payloads of Met Office UM Post-Processing and Fields files.") + (license license:bsd-3))) + (define-public java-jmapviewer (package (name "java-jmapviewer") |
