From: Vivien Kraus via Guix-patches via <guix-patches@gnu.org>
To: 53402@debbugs.gnu.org
Subject: [bug#53402] Update dependencies and rebase on newer work
Date: Thu, 26 May 2022 23:24:27 +0200 [thread overview]
Message-ID: <3bfd0e42807f6728bbf8cd43212727eb840cdee3.camel@planete-kraus.eu> (raw)
In-Reply-To: <df09d62f7aa0e6a21362f9b7df5a88ff0ddd0a41.camel@planete-kraus.eu>
[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]
Dear guix,
Since I made the last update to this series, someone did work in the
python science packages and I had to publish a new rebase of my work,
discarding duplicate packaging efforts. I also used that opportunity to
update my dependencies.
Could you publish the new rebase in a new branch? Previously, nckx did
it to wip-python-mne. It was of great help to me because I can use the
branch in gitlab CI without having to patch and rebuild guix in the
pipeline. It would be wiser to use a new branch, based on master.
Thank you for the time you already spent helping me.
Best regards,
Vivien
[-- Attachment #1.2: v6-0001-gnu-Add-python-imageio-ffmpeg.patch --]
[-- Type: text/x-patch, Size: 2083 bytes --]
From 40fad25a6348530b286ecc43eda7ffa1604f80b3 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 15:39:12 +0100
Subject: [PATCH v6 01/28] gnu: Add python-imageio-ffmpeg.
* gnu/packages/python-xyz.scm (python-imageio-ffmpeg): New variable.
---
gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 44eeb0d7fe..948125df46 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27162,6 +27162,38 @@ (define-public python-json5
dumping of JSON5 data structures.")
(license license:asl2.0)))
+(define-public python-imageio-ffmpeg
+ (package
+ (name "python-imageio-ffmpeg")
+ (version "0.4.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "imageio-ffmpeg" version))
+ (sha256
+ (base32 "0gkjkrmgbdcfqx010hp23ymrkp1zzmjbh88qliyf6qzkjy7q623s"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f ;; Most tests download data (use the git url)
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'set-ffmpeg-exe
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; There are different strategies to find ffmpeg, we
+ ;; only fix the last resort, "system ffmpeg command"
+ (substitute* "imageio_ffmpeg/_utils.py"
+ (("exe = \"ffmpeg\"")
+ (format #f "exe = ~s"
+ (search-input-file
+ inputs "/bin/ffmpeg")))))))))
+ (inputs (list ffmpeg))
+ (home-page "https://github.com/imageio/imageio-ffmpeg")
+ (synopsis "@samp{ffmpeg} wrapper for Python")
+ (description
+ "The purpose of this project is to wrap the @command{ffmpeg} executable
+for working with video files.")
+ (license license:bsd-2)))
+
(define-public python-frozendict
(package
(name "python-frozendict")
base-commit: 6b819f82857c5c2515d579dce94e89ea7d8547fd
--
2.36.1
[-- Attachment #1.3: v6-0002-gnu-Add-python-edflib.patch --]
[-- Type: text/x-patch, Size: 3791 bytes --]
From d1836f60cf906a5e6d4943b9818b8d8385d914ea Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 15:47:30 +0100
Subject: [PATCH v6 02/28] gnu: Add python-edflib.
* gnu/packages/python-science.scm (python-edflib): New variable.
---
gnu/packages/python-science.scm | 65 ++++++++++++++++++++++++++++++++-
1 file changed, 64 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 6bc726fc83..49f0322c51 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -18,6 +18,7 @@
;;; Copyright © 2022 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
;;; Copyright © 2022 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
+;;; Copyright © 2022 Vivien Kraus <viven@planete-kraus.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -68,7 +69,8 @@ (define-module (gnu packages python-science)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
- #:use-module (guix build-system python))
+ #:use-module (guix build-system python)
+ #:use-module (guix gexp))
(define-public python-scipy
(package
@@ -1291,3 +1293,64 @@ (define-public python-aplus
(description "This package is an implementation of the Promises/A+
specification and test suite in Python.")
(license license:expat)))
+
+(define-public python-edflib
+ (package
+ (name "python-edflib")
+ (version "1.0.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.com/Teuniz/EDFlib-Python.git")
+ (commit "417fc8cc7c47a9b0e39189b34de1fc50be65b72d")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0h3v5kb4yn1ahb7gxb8qrh1m50w1ykb4px4yvvq64kbckn0qrd22"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ (substitute* "tests/edf_unit_test.py"
+ (("from edfreader") "from EDFlib.edfreader")
+ (("from edfwriter") "from EDFlib.edfwriter"))))
+ ;; XXX: PEP 517 manual build copied from python-isort.
+ (replace 'build
+ (lambda _
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python"
+ "-m"
+ "build"
+ "--wheel"
+ "--no-isolation"
+ ".")))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip"
+ "--no-cache-dir"
+ "--no-input"
+ "install"
+ "--no-deps"
+ "--prefix"
+ #$output
+ whl))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "tests/edf_unit_test.py")))))))
+ (propagated-inputs (list python-numpy python-pypa-build))
+ (home-page "https://www.teuniz.net/edflib_python/")
+ (synopsis "Read and write EDF+/BDF+ files")
+ (description
+ "EDFlib for Python is a programming library to read and write EDF+ and
+BDF+ files. It also reads old-type EDF/BDF files. @dfn{EDF} means
+@url{https://www.teuniz.net/edfbrowser/edf%20format%20description.html,
+European Data Format}. @dfn{BDF} is the
+@url{https://www.teuniz.net/edfbrowser/bdfplus%20format%20description.html,
+24-bit version} of EDF.")
+ (license license:bsd-3)))
--
2.36.1
[-- Attachment #1.4: v6-0003-gnu-Add-python-eeglabio.patch --]
[-- Type: text/x-patch, Size: 1601 bytes --]
From 77f4fc397de416294368537a1a7dd32f3cd0de6c Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 17:17:11 +0100
Subject: [PATCH v6 03/28] gnu: Add python-eeglabio.
* gnu/packages/python-science.scm (python-eeglabio): New variable.
---
gnu/packages/python-science.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 49f0322c51..158f8eaac9 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1354,3 +1354,27 @@ (define-public python-edflib
@url{https://www.teuniz.net/edfbrowser/bdfplus%20format%20description.html,
24-bit version} of EDF.")
(license license:bsd-3)))
+
+(define-public python-eeglabio
+ (package
+ (name "python-eeglabio")
+ (version "0.0.1.post7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jackz314/eeglabio")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "0094vxlai0rjknlrdrsk22bhh6a8ihanqk8pg5yfmd2piwwzqkjr"))))
+ (build-system python-build-system)
+ (arguments
+ `(;; Tests require MNE
+ #:tests? #f))
+ (propagated-inputs (list python-numpy python-scipy))
+ (native-inputs (list python-pytest))
+ (home-page "https://github.com/jackz314/eeglabio")
+ (synopsis "I/O support for EEGLAB files in Python")
+ (description "This project provides I/O support for EEGLAB files in Python.")
+ (license license:bsd-3)))
--
2.36.1
[-- Attachment #1.5: v6-0004-gnu-Add-python-nibabel.patch --]
[-- Type: text/x-patch, Size: 3372 bytes --]
From dc94848ad9788c9a3681067db2b65cc5598cab3d Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 17:38:47 +0100
Subject: [PATCH v6 04/28] gnu: Add python-nibabel.
* gnu/packages/python-science.scm (python-nibabel): New variable.
---
gnu/packages/python-science.scm | 51 +++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 158f8eaac9..b44eb85004 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -61,6 +61,7 @@ (define-module (gnu packages python-science)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages statistics)
#:use-module (gnu packages time)
+ #:use-module (gnu packages version-control)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
@@ -1378,3 +1379,53 @@ (define-public python-eeglabio
(synopsis "I/O support for EEGLAB files in Python")
(description "This project provides I/O support for EEGLAB files in Python.")
(license license:bsd-3)))
+
+(define-public python-nibabel
+ (package
+ (name "python-nibabel")
+ (version "3.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "nibabel" version))
+ (sha256
+ (base32
+ "152g29y0n19fn846r5r095g5q3xjpcyan7pciygcw184ndsc3p5h"))))
+ (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" "nibabel")))))))
+ (propagated-inputs (list python-numpy python-packaging))
+ (native-inputs (list python-coverage
+ python-gitpython
+ python-pytest
+ python-pytest-cov
+ python-pytest-doctestplus
+ python-twine))
+ (home-page "https://nipy.org/nibabel/")
+ (synopsis "Access a multitude of neuroimaging data formats")
+ (description
+ "This package provides read +/- write access to some common
+medical and neuroimaging file formats, including:
+@url{http://www.grahamwideman.com/gw/brain/analyze/formatdoc.htm,
+ANALYZE} (plain, SPM99, SPM2 and later),
+@url{https://www.nitrc.org/projects/gifti, GIFTI},
+@url{http://nifti.nimh.nih.gov/nifti-1/, NIfTI1},
+@url{http://nifti.nimh.nih.gov/nifti-2/, NIfTI2},
+@url{https://www.nitrc.org/projects/cifti/, CIFTI-2},
+@url{https://en.wikibooks.org/wiki/MINC/Reference/MINC1_File_Format_Reference,
+MINC1},
+@url{https://en.wikibooks.org/wiki/MINC/Reference/MINC2.0_File_Format_Reference,
+MINC2}, @url{https://afni.nimh.nih.gov/pub/dist/src/README.attributes, AFNI
+BRIK/HEAD},
+@url{https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MghFormat, MGH} and
+@url{http://xmedcon.sourceforge.net/Docs/Ecat, ECAT} as well as Philips
+PAR/REC. We can read and write @url{https://surfer.nmr.mgh.harvard.edu/,
+FreeSurfer} geometry, annotation and morphometry files. There is some very
+limited support for @url{http://medical.nema.org/, DICOM}. NiBabel is the
+successor of @url{http://niftilib.sourceforge.net/pynifti/, PyNIfTI}.")
+ (license license:expat)))
--
2.36.1
[-- Attachment #1.6: v6-0005-gnu-Add-python-nitime.patch --]
[-- Type: text/x-patch, Size: 2122 bytes --]
From f288abe288aa90d30dd6f3dc129743b80ed109ee Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 19:12:02 +0100
Subject: [PATCH v6 05/28] gnu: Add python-nitime.
* gnu/packages/python-science.scm (python-nitime): New variable.
---
gnu/packages/python-science.scm | 34 +++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index b44eb85004..116caca20a 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1429,3 +1429,37 @@ (define-public python-nibabel
limited support for @url{http://medical.nema.org/, DICOM}. NiBabel is the
successor of @url{http://niftilib.sourceforge.net/pynifti/, PyNIfTI}.")
(license license:expat)))
+
+(define-public python-nitime
+ (package
+ (name "python-nitime")
+ (version "0.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "nitime" version))
+ (sha256
+ (base32
+ "0x1q6ka8i330yhp5h0h6igfs2gp5dndiybyfkdi45a8zpfnr0zbf"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-matplotlib python-networkx python-nibabel
+ python-numpy python-scipy))
+ (native-inputs (list python-cython python-pytest))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'delete-generated-cython
+ (lambda _
+ (delete-file "nitime/_utils.c")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "nitime")))))))
+ (home-page "http://nipy.org/nitime/")
+ (synopsis "Nitime: timeseries analysis for neuroscience data")
+ (description
+ "Nitime contains a core of numerical algorithms for time-series analysis
+both in the time and spectral domains, a set of container objects to represent
+time-series, and auxiliary objects that expose a high level interface to the
+numerical machinery.")
+ (license license:bsd-3)))
--
2.36.1
[-- Attachment #1.7: v6-0006-gnu-Add-python-flake8-array-spacing.patch --]
[-- Type: text/x-patch, Size: 1769 bytes --]
From 94a8526d8fbdfae0667d07c81760e3f81bfe014b Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 19:20:06 +0100
Subject: [PATCH v6 06/28] gnu: Add python-flake8-array-spacing.
* gnu/packages/python-science.scm (python-flake8-array-spacing): New variable.
---
gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 948125df46..bbf2419fee 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27194,6 +27194,32 @@ (define-public python-imageio-ffmpeg
for working with video files.")
(license license:bsd-2)))
+(define-public python-flake8-array-spacing
+ (package
+ (name "python-flake8-array-spacing")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "flake8_array_spacing" version))
+ (sha256
+ (base32 "0nyp2x45hg5dkdrn0j2wcd336dnx6csizpfq5fwbk774wrb0lh6d"))))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "pytest")))))))
+ (native-inputs (list python-pytest))
+ (build-system python-build-system)
+ (propagated-inputs (list python-flake8 python-pycodestyle))
+ (home-page "https://github.com/larsoner/flake8-array-spacing")
+ (synopsis "flake8 plugin to make exceptions for array-like variables")
+ (description "Recast some E2XX errors as A2XX with exceptions for
+array-like variables.")
+ (license license:bsd-3)))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.8: v6-0007-gnu-Add-python-makefun.patch --]
[-- Type: text/x-patch, Size: 1606 bytes --]
From 77f2765c903c97dcc05aa8508a9425b115a82640 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 21:17:39 +0100
Subject: [PATCH v6 07/28] gnu: Add python-makefun.
* gnu/packages/python-xyz.scm (python-makefun): New variable.
---
gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bbf2419fee..fd8f803104 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27220,6 +27220,28 @@ (define-public python-flake8-array-spacing
array-like variables.")
(license license:bsd-3)))
+(define-public python-makefun
+ (package
+ (name "python-makefun")
+ (version "1.13.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "makefun" version))
+ (sha256
+ (base32
+ "1gqnqvwzig9ym4nyzwy6dzra7sg6339rdaca59fvkfzzf2vbhnwq"))))
+ (build-system python-build-system)
+ (native-inputs (list python-pytest python-pytest-runner
+ python-setuptools-scm))
+ (home-page "https://github.com/smarie/python-makefun")
+ (synopsis "Small library to dynamically create python functions")
+ (description
+ "@samp{makefun} helps you create functions dynamically, with the
+signature of your choice. It was largely inspired by @samp{decorator} and
+@samp{functools}, and created mainly to cover some of their limitations.")
+ (license license:bsd-3)))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.9: v6-0008-gnu-Add-python-pytest-logging.patch --]
[-- Type: text/x-patch, Size: 1617 bytes --]
From 0d91c0683ddd59b33c453c73483f9c324db380b8 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:32:09 +0100
Subject: [PATCH v6 08/28] gnu: Add python-pytest-logging.
* gnu/packages/python-check.scm (python-pytest-logging): New variable.
---
gnu/packages/python-check.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index d788935caa..c46c6638e4 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -2139,6 +2139,31 @@ (define-public python-pytest-rerunfailures
eliminate flaky failures.")
(license license:mpl2.0)))
+(define-public python-pytest-logging
+ (package
+ (name "python-pytest-logging")
+ (version "2015.11.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-logging" version))
+ (sha256
+ (base32
+ "15n8fyxvvwmk982vj0m9yl76hn7pp4qqljfmxarbgahqrxgciiff"))))
+ (build-system python-build-system)
+ (arguments
+ `(;; The tests are not present in the pypi source, and they all fail if
+ ;; building from git
+ #:tests? #f))
+ (propagated-inputs (list python-pytest))
+ (home-page "https://github.com/saltstack/pytest-logging")
+ (synopsis
+ "Logging with a @code{py.test} flag")
+ (description
+ "This package configures logging and allows tweaking the log level with a
+@code{py.test} flag.")
+ (license license:asl2.0)))
+
(define-public python-xunitparser
(package
(name "python-xunitparser")
--
2.36.1
[-- Attachment #1.10: v6-0009-gnu-Add-a-test-less-python-decopatch.patch --]
[-- Type: text/x-patch, Size: 2003 bytes --]
From b1586be02ab153c59ba8081c54937f9e8cd3373a Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:32:53 +0100
Subject: [PATCH v6 09/28] gnu: Add a test-less python-decopatch.
* gnu/packages/python-xyz.scm (python-decopatch-minimal): New variable.
---
gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fd8f803104..cc24b993f2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27242,6 +27242,36 @@ (define-public python-makefun
@samp{functools}, and created mainly to cover some of their limitations.")
(license license:bsd-3)))
+;; decopatch requires the next pytest modules if tests are enabled. The pytest
+;; modules require each other for tests.
+
+(define python-decopatch-minimal
+ (package
+ (name "python-decopatch-minimal")
+ (version "1.4.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "decopatch" version))
+ (sha256
+ (base32
+ "1i6i811s2j1z0cl6y177dwsbfxib8dvb5c2jpgklvc2xy4ahhsy6"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f))
+ (propagated-inputs (list python-makefun))
+ (native-inputs (list python-pytest python-pytest-runner
+ python-setuptools-scm))
+ (home-page "https://github.com/smarie/python-decopatch")
+ (synopsis "Python decorators made easy")
+ (description
+ "Because of a tiny oddity in the python language, writing decorators
+without help can be a pain because you have to handle the no-parenthesis usage
+@url{https://smarie.github.io/python-decopatch/motivation, explicitly}.
+@samp{decopatch} provides a simple way to solve this issue so that writing
+decorators is simple and straightforward.")
+ (license license:bsd-3)))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.11: v6-0010-gnu-Add-a-test-less-python-pytest-harvest.patch --]
[-- Type: text/x-patch, Size: 1778 bytes --]
From 6a7cc702c88bfc56ab7e00ca132cbf4012741b22 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:33:32 +0100
Subject: [PATCH v6 10/28] gnu: Add a test-less python-pytest-harvest.
* gnu/packages/python-xyz.scm (python-pytest-harvest-minimal): New variable.
---
gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cc24b993f2..7ddba93891 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27272,6 +27272,31 @@ (define python-decopatch-minimal
decorators is simple and straightforward.")
(license license:bsd-3)))
+(define python-pytest-harvest-minimal
+ (package
+ (name "python-pytest-harvest-minimal")
+ (version "1.10.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-harvest" version))
+ (sha256
+ (base32
+ "092drlh96rhikwqqyfpwqhkzfzd7z8m5gbmjgky8npm81849jbsk"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f))
+ (propagated-inputs (list python-decopatch-minimal python-makefun
+ python-six))
+ (native-inputs (list python-pytest python-pytest-runner
+ python-setuptools-scm))
+ (home-page "https://github.com/smarie/python-pytest-harvest")
+ (synopsis "Store data created during your @samp{pytest} tests execution")
+ (description
+ "Store data created during your pytest tests execution, and retrieve it
+at the end of the session, e.g. for applicative benchmarking purposes.")
+ (license license:bsd-3)))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.12: v6-0011-gnu-Add-a-test-less-python-pytest-steps.patch --]
[-- Type: text/x-patch, Size: 1718 bytes --]
From a7988b3ff6826ccf5622d973e484e3f80263eff6 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:34:06 +0100
Subject: [PATCH v6 11/28] gnu: Add a test-less python-pytest-steps.
* gnu/packages/python-xyz.scm (python-pytest-steps-minimal): New variable.
---
gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7ddba93891..9a6c2429f4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27297,6 +27297,30 @@ (define python-pytest-harvest-minimal
at the end of the session, e.g. for applicative benchmarking purposes.")
(license license:bsd-3)))
+(define python-pytest-steps-minimal
+ (package
+ (name "python-pytest-steps-minimal")
+ (version "1.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-steps" version))
+ (sha256
+ (base32
+ "05r2ch7191saj7sw6d47bfa5vnyyj157dl8hvlcc78xx6jyxy46j"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f))
+ (propagated-inputs (list python-makefun python-wrapt python-tabulate
+ python-pandas))
+ (native-inputs (list python-pytest python-pytest-runner
+ python-setuptools-scm))
+ (home-page "https://github.com/smarie/python-pytest-steps")
+ (synopsis "Create step-wise / incremental tests in pytest")
+ (description "This package provides support for step-wise / incremental
+tests in pytest.")
+ (license license:bsd-3)))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.13: v6-0012-gnu-Add-a-test-less-python-pytest-cases.patch --]
[-- Type: text/x-patch, Size: 2234 bytes --]
From 4e25800be8a53279e93ba7797b420be78a46fbeb Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:34:36 +0100
Subject: [PATCH v6 12/28] gnu: Add a test-less python-pytest-cases.
* gnu/packages/python-xyz.scm (python-pytest-cases-minimal): New variable.
---
gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9a6c2429f4..6b79fad584 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27321,6 +27321,38 @@ (define python-pytest-steps-minimal
tests in pytest.")
(license license:bsd-3)))
+(define python-pytest-cases-minimal
+ (package
+ (name "python-pytest-cases-minimal")
+ (version "3.6.13")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-cases" version))
+ (sha256
+ (base32
+ "0g3lp4m19fk83kl2b4akwg7wqqaqlfzp4v6qcb0hq27161xyh8yl"))))
+ (build-system python-build-system)
+ (propagated-inputs (list python-decopatch-minimal python-makefun))
+ (native-inputs (list python-pytest
+ python-pytest-runner
+ python-setuptools-scm
+ python-pytest-asyncio
+ python-pytest-harvest-minimal
+ python-pytest-steps-minimal))
+ (home-page "https://github.com/smarie/python-pytest-cases")
+ (synopsis "Separate test code from test cases in @samp{pytest}")
+ (description
+ "@samp{pytest-cases} leverages @samp{pytest} and its great
+@samp{@@pytest.mark.parametrize decorator}, so that you can @strong{separate
+your test cases from your test functions}. In addition, @samp{pytest-cases}
+provides several useful goodies to empower @samp{pytest}. In particular it
+improves the fixture mechanism to support \"fixture unions\". This is a
+@strong{major change} in the internal @samp{pytest} engine, unlocking many
+possibilities such as using fixture references as parameter values in a test
+function.")
+ (license license:bsd-3)))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.14: v6-0013-gnu-Add-python-decopatch.patch --]
[-- Type: text/x-patch, Size: 1682 bytes --]
From 4a9ba415c136d4d48b8d9f21f2d6e6a1bef10c2e Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:35:02 +0100
Subject: [PATCH v6 13/28] gnu: Add python-decopatch.
* gnu/packages/python-xyz.scm (python-decopatch): New variable.
---
gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6b79fad584..fd43a24d43 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27353,6 +27353,28 @@ (define python-pytest-cases-minimal
function.")
(license license:bsd-3)))
+(define-public python-decopatch
+ (package
+ (inherit python-decopatch-minimal)
+ (name "python-decopatch")
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda _
+ (delete-file "decopatch/tests/test_main2.py")
+ (delete-file
+ "decopatch/tests/test_main2_parametrizers.py")
+ (delete-file "decopatch/tests/test_introspection.py")
+ (delete-file
+ "decopatch/tests/test_introspection_base.py")
+ (substitute* "decopatch/tests/test_doc_advanced.py"
+ (("'uses_introspection', \\[True, False\\]")
+ "'uses_introspection', [False]")))))))
+ (native-inputs (list python-pytest python-pytest-runner
+ python-pytest-cases-minimal python-setuptools-scm
+ python-pytest-logging))))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.15: v6-0014-gnu-Add-python-pytest-cases.patch --]
[-- Type: text/x-patch, Size: 1092 bytes --]
From e972203732ee2c4095f5ba219b8851e47603bb96 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:35:28 +0100
Subject: [PATCH v6 14/28] gnu: Add python-pytest-cases.
* gnu/packages/python-xyz.scm (python-pytest-cases): New variable.
---
gnu/packages/python-xyz.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index fd43a24d43..aa0fcf3a7f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27375,6 +27375,14 @@ (define-public python-decopatch
python-pytest-cases-minimal python-setuptools-scm
python-pytest-logging))))
+(define-public python-pytest-cases
+ (package
+ (inherit python-pytest-cases-minimal)
+ (name "python-pytest-cases")
+ (arguments '())
+ ;; Propagate the tested decopatch instead of decopatch-minimal
+ (propagated-inputs (list python-decopatch python-makefun))))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.16: v6-0015-gnu-Add-python-pytest-harvest.patch --]
[-- Type: text/x-patch, Size: 1566 bytes --]
From 05f7c2a1300db7fded5e5074328c44d612deeab3 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:35:49 +0100
Subject: [PATCH v6 15/28] gnu: Add python-pytest-harvest.
* gnu/packages/python-xyz.scm (python-pytest-harvest): New variable.
---
gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index aa0fcf3a7f..2e1306ccd4 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27383,6 +27383,25 @@ (define-public python-pytest-cases
;; Propagate the tested decopatch instead of decopatch-minimal
(propagated-inputs (list python-decopatch python-makefun))))
+(define-public python-pytest-harvest
+ (package
+ (inherit python-pytest-harvest-minimal)
+ (name "python-pytest-harvest")
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'move-pytests-plugins
+ (lambda _
+ (rename-file "pytest_harvest/tests/conftest.py"
+ "conftest.py"))))))
+ (native-inputs (list python-pytest
+ python-pytest-runner
+ python-setuptools-scm
+ python-pytest-cases
+ python-tabulate
+ python-pandas))
+ (propagated-inputs (list python-decopatch python-makefun python-six))))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.17: v6-0016-gnu-Add-python-pytest-steps.patch --]
[-- Type: text/x-patch, Size: 1376 bytes --]
From bf5c7dda849e637cf2e0f62c6bd7484fe58178b8 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 22:36:06 +0100
Subject: [PATCH v6 16/28] gnu: Add python-pytest-steps.
* gnu/packages/python-xyz.scm (python-pytest-steps): New variable.
---
gnu/packages/python-xyz.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2e1306ccd4..2fd9b1b589 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27402,6 +27402,21 @@ (define-public python-pytest-harvest
python-pandas))
(propagated-inputs (list python-decopatch python-makefun python-six))))
+(define-public python-pytest-steps
+ (package
+ (inherit python-pytest-steps-minimal)
+ (name "python-pytest-steps")
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'move-pytests-plugins
+ (lambda _
+ (rename-file "pytest_steps/tests/conftest.py"
+ "conftest.py"))))))
+ (native-inputs (list python-pytest python-pytest-runner
+ python-setuptools-scm python-pytest-cases
+ python-pytest-harvest))))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.18: v6-0017-gnu-python-pooch-Update-to-1.6.0.patch --]
[-- Type: text/x-patch, Size: 2337 bytes --]
From 58f8e688de1434fea029b563745bf1aaf8ae720b Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 23:00:37 +0100
Subject: [PATCH v6 17/28] gnu: python-pooch: Update to 1.6.0.
* gnu/packages/python-xyz.scm (python-pooch): Update to 1.6.0.
[native-inputs]: Add python-setuptools-scm.
---
gnu/packages/python-xyz.scm | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2fd9b1b589..81fff5966f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23866,18 +23866,44 @@ (define-public pybind11
(define-public python-pooch
(package
(name "python-pooch")
- (version "1.3.0")
+ (version "1.6.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pooch" version))
(sha256
- (base32 "1618adsg9r8fsv422sv35z1i723q3a1iir5v7dv2sklh4pl4im1h"))))
+ (base32 "0i1zmd0v7n3yx167j18ldidfiih9n734pdjvn3999mhdn720xljp"))))
(build-system python-build-system)
(arguments
- `(#:tests? #f)) ;requires online data
+ (list
+ #:tests? #f ;requires online data
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: PEP 517 manual build copied from python-isort.
+ (replace 'build
+ (lambda _
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python"
+ "-m"
+ "build"
+ "--wheel"
+ "--no-isolation"
+ ".")))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip"
+ "--no-cache-dir"
+ "--no-input"
+ "install"
+ "--no-deps"
+ "--prefix"
+ #$output
+ whl)))))))
(propagated-inputs
(list python-appdirs python-packaging python-requests))
+ (native-inputs
+ (list python-pypa-build python-setuptools-scm))
(home-page "https://github.com/fatiando/pooch")
(synopsis "Manage your Python library's sample data files")
(description
--
2.36.1
[-- Attachment #1.19: v6-0018-gnu-Add-python-h5io.patch --]
[-- Type: text/x-patch, Size: 1892 bytes --]
From 637e431c28a468a12b86b1b1df2f1172df391940 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Sun, 6 Feb 2022 22:36:44 +0100
Subject: [PATCH v6 18/28] gnu: Add python-h5io.
* gnu/packages/python-xyz.scm (python-h5io): New variable.
---
gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 81fff5966f..38f86e3a9f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1539,6 +1539,36 @@ (define-public python2-h5py
(base32
"0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4")))))))
+(define-public python-h5io
+ (package
+ (name "python-h5io")
+ (version "0.1.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/h5io/h5io")
+ (commit (string-append "h5io-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0mxsai8i7br20cqnydagng814g2hwhaq4aprsq2d4kmvff45s3az"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "h5io")))))))
+ (propagated-inputs (list python-h5py python-numpy python-scipy))
+ (native-inputs (list python-pytest python-pytest-cov))
+ (home-page "http://h5io.github.io")
+ (synopsis "Python Objects Onto HDF5")
+ (description "h5io is a package designed to facilitate saving some
+standard Python objects into the forward-compatible HDF5 format. It is a
+higher-level package than h5py.")
+ (license license:bsd-3)))
+
(define-public python-hnswlib
(package
(name "python-hnswlib")
--
2.36.1
[-- Attachment #1.20: v6-0019-gnu-Add-python-pymatreader.patch --]
[-- Type: text/x-patch, Size: 2175 bytes --]
From ead1ee9e41b2d8c6b6044502cedb6543bd42fbd1 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Sun, 6 Feb 2022 22:53:44 +0100
Subject: [PATCH v6 19/28] gnu: Add python-pymatreader.
* gnu/packages/python-xyz.scm (python-pymatreader): New variable.
---
gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 38f86e3a9f..ff9d06595a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1569,6 +1569,44 @@ (define-public python-h5io
higher-level package than h5py.")
(license license:bsd-3)))
+(define-public python-pymatreader
+ (package
+ (name "python-pymatreader")
+ (version "0.0.30")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.com/obob/pymatreader.git/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "14nzk5rjmg4mb2kcl579ri13dbd6ssznxbbix84s69ihdrv903iy"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (propagated-inputs
+ (list python-future
+ python-h5py
+ python-numpy
+ python-scipy
+ python-xmltodict))
+ (native-inputs
+ (list python-pytest python-pytest-cov python-sphinx
+ python-sphinx-autobuild python-tox python-wheel
+ python-coverage python-flake8 python-codecov))
+ (home-page "https://gitlab.com/obob/pymatreader")
+ (synopsis "Convenient reader for Matlab mat files")
+ (description "This is a Python module to read Matlab files. It works with
+both the old (< 7.3) and the new (>= 7.3) HDF5 based format. The output should
+be the same for both kinds of files.")
+ (license license:bsd-2)))
+
(define-public python-hnswlib
(package
(name "python-hnswlib")
--
2.36.1
[-- Attachment #1.21: v6-0020-gnu-Add-python-picard.patch --]
[-- Type: text/x-patch, Size: 1756 bytes --]
From 83c29475af46841e3207b2040f5be09247148445 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Sun, 6 Feb 2022 23:03:05 +0100
Subject: [PATCH v6 20/28] gnu: Add python-picard.
* gnu/packages/python-science.scm: New variable.
---
gnu/packages/python-science.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 116caca20a..92c9d0b0b2 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1463,3 +1463,32 @@ (define-public python-nitime
time-series, and auxiliary objects that expose a high level interface to the
numerical machinery.")
(license license:bsd-3)))
+
+(define-public python-picard
+ (package
+ (name "python-picard")
+ (version "0.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "python-picard" version))
+ (sha256
+ (base32 "19w5s77jfyy6h4h7iv639blfdil40ayz1whpfrdq0336qkqa2qc0"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv" "picard")))))))
+ (propagated-inputs
+ (list python-numexpr python-numpy python-scikit-learn python-scipy
+ python-matplotlib))
+ (native-inputs
+ (list python-pytest))
+ (home-page "https://pierreablin.github.io/picard")
+ (synopsis "Preconditoned ICA for Real Data")
+ (description "This package provides Python code of the Preconditioned ICA
+for Real Data (Picard) and Picard-O algorithms.")
+ (license license:bsd-3)))
--
2.36.1
[-- Attachment #1.22: v6-0021-gnu-Add-python-dipy.patch --]
[-- Type: text/x-patch, Size: 2152 bytes --]
From e14173c42163b3c2cc6aa1da90786a05fc3e4805 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Sun, 6 Feb 2022 23:16:28 +0100
Subject: [PATCH v6 21/28] gnu: Add python-dipy.
* gnu/packages/python-science.scm (python-dipy): New variable.
---
gnu/packages/python-science.scm | 34 +++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 92c9d0b0b2..4652d36c11 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1492,3 +1492,37 @@ (define-public python-picard
(description "This package provides Python code of the Preconditioned ICA
for Real Data (Picard) and Picard-O algorithms.")
(license license:bsd-3)))
+
+(define-public python-dipy
+ (package
+ (name "python-dipy")
+ (version "1.5.0")
+ (source
+ (origin
+ ;; Use git to avoid cythonized files
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dipy/dipy")
+ (commit version)))
+ (sha256
+ (base32
+ "00s8i0w1n6cp519hw5jc6hwgglqyfqp0zcrbr01gn20km7182s6y"))))
+ (build-system python-build-system)
+ (arguments
+ ;; FIXME: Tests won’t run with error messages like this:
+ ;; E ImportError: cannot import name 'vector_fields' from partially
+ ;; initialized module 'dipy.align' (most likely due to a circular import)
+ `(#:tests? #f))
+ (propagated-inputs
+ (list python-numpy python-scipy python-nibabel python-h5py
+ python-packaging python-tqdm))
+ (native-inputs
+ (list python-pytest python-cython))
+ (home-page "https://dipy.org")
+ (synopsis "Diffusion MRI utilities in python")
+ (description "DIPY is a 3D/4D+ imaging library in Python. It contains
+generic methods for spatial normalization, signal processing, machine
+learning, statistical analysis and visualization of medical images.
+Additionally, it contains specialized methods for computational anatomy
+including diffusion, perfusion and structural imaging.")
+ (license license:bsd-3)))
--
2.36.1
[-- Attachment #1.23: v6-0022-gnu-Add-python-no-version.patch --]
[-- Type: text/x-patch, Size: 1387 bytes --]
From 775def4bf140f1b7e84f671b28c2c05bc897d4ea Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Mon, 7 Feb 2022 00:20:22 +0100
Subject: [PATCH v6 22/28] gnu: Add python-no-version.
* gnu/packages/python-xyz.scm (python-no-version): New variable.
---
gnu/packages/python-xyz.scm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ff9d06595a..7bdb237c14 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27511,6 +27511,23 @@ (define-public python-pytest-steps
python-setuptools-scm python-pytest-cases
python-pytest-harvest))))
+(define-public python-no-version
+ (package
+ (name "python-no-version")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "no_version" version))
+ (sha256
+ (base32 "1y58fkwg4s96hbz3hnqj2nd8a0pimrmpk4ry1z5pwzxlyx0k66rf"))))
+ (build-system python-build-system)
+ (home-page "https://github.com/prisae/no_version")
+ (synopsis "Package without __version__ number.")
+ (description "This package demonstrates an example of a package without a
+__version__ number.")
+ (license license:cc0)))
+
(define-public python-frozendict
(package
(name "python-frozendict")
--
2.36.1
[-- Attachment #1.24: v6-0023-gnu-Add-python-nilearn.patch --]
[-- Type: text/x-patch, Size: 2235 bytes --]
From fd3a044d99309501e2c3794ae9e4bf69be1b8235 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Sun, 6 Feb 2022 23:47:47 +0100
Subject: [PATCH v6 23/28] gnu: Add python-nilearn.
* gnu/packages/python-science.scm (python-nilearn): New variable.
---
gnu/packages/python-science.scm | 38 +++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 4652d36c11..07aea5f57a 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1430,6 +1430,44 @@ (define-public python-nibabel
successor of @url{http://niftilib.sourceforge.net/pynifti/, PyNIfTI}.")
(license license:expat)))
+(define-public python-nilearn
+ (package
+ (name "python-nilearn")
+ (version "0.9.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nilearn/nilearn")
+ (commit version)))
+ (sha256
+ (base32 "0ylx4aamwgb135agrh06y9m7crxd8rjnrngnrzyjn0dpm3m1c22p"))))
+ (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" "nilearn")))))))
+ (propagated-inputs
+ (list python-joblib
+ python-nibabel
+ python-numpy
+ python-pandas
+ python-requests
+ python-scikit-learn
+ python-scipy))
+ (native-inputs
+ (list python-pytest python-pytest-cov python-codecov python-lxml))
+ (home-page "https://nilearn.github.io")
+ (synopsis "Statistical learning for neuroimaging in Python")
+ (description "Nilearn supports general linear model (GLM) based analysis
+and leverages the scikit-learn Python toolbox for multivariate statistics with
+applications such as predictive modelling, classification, decoding, or
+connectivity analysis. It includes the functionality of nistats.")
+ (license license:bsd-3)))
+
(define-public python-nitime
(package
(name "python-nitime")
--
2.36.1
[-- Attachment #1.25: v6-0024-gnu-vtk-Also-install-a-.egg-info.patch --]
[-- Type: text/x-patch, Size: 2973 bytes --]
From 4f20eb002758f868cafdedd3bf1e9c947026bf75 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Fri, 11 Feb 2022 00:34:54 +0100
Subject: [PATCH v6 24/28] gnu: vtk: Also install a .egg-info.
* gnu/packages/image-processing.scm (vtk) [phase install-egg-info]: New phase.
---
gnu/packages/image-processing.scm | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 1995f71cc2..7bab07c58c 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -328,7 +328,7 @@ (define-public vtk
(properties `((release-monitoring-url . "https://vtk.org/download/")))
(build-system cmake-build-system)
(arguments
- '(#:build-type "Release" ;Build without '-g' to save space.
+ `(#:build-type "Release" ;Build without '-g' to save space.
#:configure-flags '(;"-DBUILD_TESTING:BOOL=TRUE"
; ; not honored
"-DVTK_USE_EXTERNAL=OFF" ;; default
@@ -362,7 +362,32 @@ (define-public vtk
(substitute* "Common/Core/vtkFloatingPointExceptions.cxx"
(("<fenv.h>") "<cfenv>"))
(substitute* "Common/Core/CMakeLists.txt"
- (("fenv.h") "cfenv")))))
+ (("fenv.h") "cfenv"))))
+ (add-after 'install 'install-egg-info
+ (lambda* (#:key outputs #:allow-other-keys)
+ (use-modules (ice-9 rdelim) (guix build utils))
+ (call-with-output-file "get-python-version.py"
+ (lambda (port)
+ (format port "import sys
+v = sys.version_info
+with open('path', 'w') as f:
+ f.write('{0}.{1}'.format(v.major, v.minor))
+" port)))
+ (invoke "python3" "get-python-version.py")
+ (let* ((python-version
+ (call-with-input-file "path" read-line))
+ (egg-info
+ (format #f "~a/lib/python~a/site-packages/vtk-~a-py~a.egg-info"
+ (assoc-ref outputs "out")
+ python-version ,version python-version)))
+ (mkdir-p egg-info)
+ (call-with-output-file (string-append egg-info "/PKG-INFO")
+ (lambda (port)
+ (format port "Metadata-Version: 2.1
+Name: vtk
+Version: ~a
+"
+ ,version)))))))
#:tests? #f)) ;XXX: test data not included
(inputs
(list double-conversion
@@ -394,6 +419,7 @@ (define-public vtk
;; VTK's 'VTK-vtk-module-find-packages.cmake' calls
;; 'find_package(THEORA)', which in turns looks for libogg.
(list libogg))
+ (native-inputs (list python))
(home-page "https://vtk.org/")
(synopsis "Libraries for 3D computer graphics")
(description
--
2.36.1
[-- Attachment #1.26: v6-0025-gnu-Add-python-pytest-memprof.patch --]
[-- Type: text/x-patch, Size: 1561 bytes --]
From f73e874a4a44e6294f4d5e1de7f0b3f21faa030f Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 10 Feb 2022 20:45:25 +0100
Subject: [PATCH v6 25/28] gnu: Add python-pytest-memprof.
* gnu/packages/python-check.scm (python-pytest-memprof): New variable.
---
gnu/packages/python-check.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index c46c6638e4..8be8c5539d 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -2236,3 +2236,23 @@ (define-public python-sybil
parsed examples as part of your normal test run. Integration is
provided for the main Python test runners.")
(license license:expat)))
+
+(define-public python-pytest-memprof
+ (package
+ (name "python-pytest-memprof")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-memprof" version))
+ (sha256
+ (base32 "0rxg0q3bwlc9iax0skpia3a5x7xijz9i5110qk50vf9avwg9zg69"))))
+ (build-system python-build-system)
+ (arguments '(#:tests? #f)) ;; No tests, no git repository
+ (propagated-inputs (list python-psutil python-pytest))
+ ;; The gitlab repository is private, so the home page is not accessible.
+ (home-page "https://pypi.org/project/pytest-memprof/")
+ (synopsis "Estimate memory consumption of test functions")
+ (description "This pytest plugin estimates memory consumption of test
+functions.")
+ (license license:bsd-3)))
--
2.36.1
[-- Attachment #1.27: v6-0026-gnu-Add-python-pyvistaqt.patch --]
[-- Type: text/x-patch, Size: 2489 bytes --]
From a713ef10570ba133db8964b215d3dad007d14594 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 10 Feb 2022 20:19:49 +0100
Subject: [PATCH v6 26/28] gnu: Add python-pyvistaqt.
* gnu/packages/python-science.scm (python-pyvistaqt): New variable.
---
gnu/packages/python-science.scm | 41 +++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 07aea5f57a..6868b0479d 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1564,3 +1564,44 @@ (define-public python-dipy
Additionally, it contains specialized methods for computational anatomy
including diffusion, perfusion and structural imaging.")
(license license:bsd-3)))
+
+(define-public python-pyvistaqt
+ (package
+ (name "python-pyvistaqt")
+ (version "0.9.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pyvista/pyvistaqt")
+ (commit version)))
+ (sha256
+ (base32 "0wp60z1sdcr82j90q5waii7z23r57pfwl1wr3lmxkpqjc7bz0gq4"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-skipping-tests
+ (lambda _
+ (substitute* "tests/conftest.py"
+ (("NO_PLOTTING, reason=") ""))))
+ (add-before 'check 'prepare-x
+ (lambda _
+ (system "Xvfb &")
+ (setenv "DISPLAY" ":0")
+ (setenv "HOME" "/tmp")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "pytest")))))))
+ (propagated-inputs (list python-pyvista python-qtpy))
+ (native-inputs (list python-pytest python-codecov python-ipython
+ python-numpy python-pytest-cov python-pytest-memprof
+ python-pytest-qt python-pyvista python-qtpy
+ python-scooby vtk xorg-server-for-tests))
+ (home-page "https://github.com/pyvista/pyvistaqt")
+ (synopsis "@code{pyvista} qt plotter")
+ (description "@code{pyvistaqt} is a helper module for pyvista to enable
+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)))
--
2.36.1
[-- Attachment #1.28: v6-0027-gnu-Add-python-mffpy.patch --]
[-- Type: text/x-patch, Size: 1991 bytes --]
From be825118585ffe8059dea3f5ae3c49bd4514a2ba Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
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
[-- Attachment #1.29: v6-0028-gnu-Add-python-mne.patch --]
[-- Type: text/x-patch, Size: 4084 bytes --]
From ed24fd862a0a9bd06ecc3a25dd4c2c6542226252 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Thu, 20 Jan 2022 23:21:25 +0100
Subject: [PATCH v6 28/28] gnu: Add python-mne.
* gnu/packages/python-science.scm (python-mne): New variable.
---
gnu/packages/python-science.scm | 65 +++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 78ef733750..ef0b7f2cd7 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -46,6 +46,7 @@ (define-module (gnu packages python-science)
#:use-module (gnu packages databases)
#:use-module (gnu packages gcc)
#:use-module (gnu packages image-processing)
+ #:use-module (gnu packages jupyter)
#:use-module (gnu packages machine-learning)
#:use-module (gnu packages maths)
#:use-module (gnu packages mpi)
@@ -57,6 +58,7 @@ (define-module (gnu packages python-science)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages qt)
#:use-module (gnu packages simulation)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages statistics)
@@ -1636,3 +1638,66 @@ (define-public python-mffpy
files are directories containing several files of mostly xml files, but also
binary files.")
(license license:asl2.0)))
+
+(define-public python-mne
+ (package
+ (name "python-mne")
+ (version "1.0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mne" version))
+ (sha256
+ (base32
+ "1vfgqpvjq2b3x1wkw7mn7hk6gcxbvgqfknbh9qkg2r7r22cy38p5"))))
+ (build-system python-build-system)
+ (arguments
+ ;; The test data is distributed in a separate repository without a
+ ;; license, https://github.com/mne-tools/mne-testing-data
+ `(#:tests? #f))
+ (propagated-inputs (list python-numpy python-scipy
+ python-matplotlib
+ python-tqdm
+ python-pooch
+ python-decorator
+ python-h5io
+ python-packaging
+ python-pymatreader
+ python-pyqt
+ python-pyqt5-sip
+ python-sip
+ python-scikit-learn
+ python-nibabel
+ python-numba
+ python-h5py
+ python-jinja2
+ python-pandas
+ python-numexpr
+ jupyter
+ python-picard
+ python-statsmodels
+ python-joblib
+ python-psutil
+ python-dipy
+ vtk
+ python-nilearn
+ python-xlrd
+ python-imageio
+ python-imageio-ffmpeg
+ python-traitlets
+ python-pyvista
+ python-pyvistaqt
+ python-mffpy
+ python-ipywidgets
+ ;; FIXME: add the following dependencies:
+ ;; python-ipyvtklink requires NPM to build
+ ;; mne-qt-browser is not included, because it
+ ;; depends on MNE.
+ ))
+ (home-page "https://mne.tools/dev/")
+ (synopsis "MNE-Python project for MEG and EEG data analysis")
+ (description
+ "Open-source Python package for exploring, visualizing, and
+analyzing human neurophysiological data: MEG, EEG, sEEG, ECoG, NIRS, and
+more.")
+ (license license:bsd-3)))
--
2.36.1
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 695 bytes --]
prev parent reply other threads:[~2022-05-26 21:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-20 22:46 [bug#53402] Add python-mne Vivien via Guix-patches via
[not found] ` <handler.53402.B.164271885411910.ack@debbugs.gnu.org>
2022-01-21 8:17 ` [bug#53402] Add python-mne: fix or disable tests Vivien Kraus via Guix-patches via
2022-02-03 19:29 ` [bug#53402] Rebase it for the new python packages Vivien via Guix-patches via
2022-02-03 20:49 ` Vinicius Monego
2022-02-06 14:49 ` Vivien via Guix-patches via
2022-02-06 20:06 ` Vinicius Monego
2022-02-11 3:03 ` Vivien via Guix-patches via
2022-03-06 21:48 ` [bug#53402] Add python-mne Ludovic Courtès
2022-03-09 23:28 ` Vinicius Monego
2022-05-26 21:24 ` Vivien Kraus via Guix-patches via [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3bfd0e42807f6728bbf8cd43212727eb840cdee3.camel@planete-kraus.eu \
--to=guix-patches@gnu.org \
--cc=53402@debbugs.gnu.org \
--cc=vivien@planete-kraus.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.