From be825118585ffe8059dea3f5ae3c49bd4514a2ba Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 10 Feb 2022 20:29:00 +0100 Subject: [PATCH v6 27/28] gnu: Add python-mffpy. * gnu/packages/python-science.scm: New variable. --- gnu/packages/python-science.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 6868b0479d..78ef733750 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1605,3 +1605,34 @@ (define-public python-pyvistaqt you to plot using pyqt by placing a vtk-widget into a background render. This can be quite useful when you desire to update your plot in real-time.") (license license:expat))) + +(define-public python-mffpy + (package + (name "python-mffpy") + (version "0.7.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/BEL-Public/mffpy") + (commit (string-append "v" version)))) + (sha256 + (base32 "0pjp1awzqla7nw3q68a9p3vbz9ish92b8v1j7h8fvjbd2x3395h5")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" "--pyargs" "mffpy"))))))) + (propagated-inputs (list python-deprecated python-numpy python-pytz)) + (native-inputs + (list python-mypy python-pytest python-pytest-cov pre-commit + python-flake8)) + (home-page "https://github.com/BEL-Public/mffpy") + (synopsis "Reader and Writer for Philips' MFF file format.") + (description "@code{mffpy} is a reader for EGI's MFF file format. These +files are directories containing several files of mostly xml files, but also +binary files.") + (license license:asl2.0))) -- 2.36.1