[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/32: gnu: Add python-scooby.
From: |
guix-commits |
Subject: |
25/32: gnu: Add python-scooby. |
Date: |
Wed, 16 Feb 2022 11:39:42 -0500 (EST) |
nckx pushed a commit to branch wip-python-mne
in repository guix.
commit db8f55cef687983e681ffd186572c55a52c17ef0
Author: Vivien Kraus <vivien@planete-kraus.eu>
AuthorDate: Mon Feb 7 00:08:40 2022 +0100
gnu: Add python-scooby.
* gnu/packages/python-science.scm (python-scooby): New variable.
---
gnu/packages/python-science.scm | 45 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 0c4551ad21..6a6924eac6 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1252,3 +1252,48 @@ 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)))
+
+(define-public python-scooby
+ (package
+ ;; Because of its dependencies, it must be in this module.
+ (name "python-scooby")
+ (version "0.5.11")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/banesullivan/scooby")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "13kzhh90wcrfg771s1x88smq3752i1r68jd514scdr7q3fy9ac5m"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-import-test
+ (lambda _
+ ;; This package has a test named test_import_error. This test is
+ ;; supposed to require a random complex package to ensure that an
+ ;; error is raised. If pyvips ends up in the dependency graph,
+ ;; pick another one.
+ (substitute* "tests/test_scooby.py"
+ (("with pytest.raises\\(OSError\\):")
+ "with pytest.raises(ModuleNotFoundError):"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "pytest")))))))
+ (propagated-inputs (list python-psutil))
+ (native-inputs (list python-pytest python-pytest-cov python-codecov
+ python-beautifulsoup4 python-psutil python-numpy
+ python-scipy python-no-version
+ ;; python-pyvips is an example package that should
+ ;; NOT be available
+ ))
+ (home-page "https://github.com/banesullivan/scooby")
+ (synopsis "Report your python environment’s package versions and hardware
resources")
+ (description
+ "This package reports your python environment’s package versions and
+hardware resources.")
+ (license license:expat)))
- 32/32: gnu: Add python-mne., (continued)
- 32/32: gnu: Add python-mne., guix-commits, 2022/02/16
- 12/32: gnu: Add a test-less python-pytest-cases., guix-commits, 2022/02/16
- 04/32: gnu: Add python-nibabel., guix-commits, 2022/02/16
- 11/32: gnu: Add a test-less python-pytest-steps., guix-commits, 2022/02/16
- 26/32: gnu: Add python-nilearn., guix-commits, 2022/02/16
- 23/32: gnu: Add python-pyperf., guix-commits, 2022/02/16
- 30/32: gnu: Add python-pyvistaqt., guix-commits, 2022/02/16
- 06/32: gnu: Add python-flake8-array-spacing., guix-commits, 2022/02/16
- 15/32: gnu: Add python-pytest-harvest., guix-commits, 2022/02/16
- 22/32: gnu: Add python-no-version., guix-commits, 2022/02/16
- 25/32: gnu: Add python-scooby.,
guix-commits <=
- 01/32: gnu: Add python-imageio-ffmpeg., guix-commits, 2022/02/16
- 10/32: gnu: Add a test-less python-pytest-harvest., guix-commits, 2022/02/16
- 31/32: gnu: Add python-mffpy., guix-commits, 2022/02/16
- 29/32: gnu: Add python-pytest-memprof., guix-commits, 2022/02/16
- 17/32: gnu: python-pooch: Update to 1.6.0., guix-commits, 2022/02/16
- 19/32: gnu: Add python-pymatreader., guix-commits, 2022/02/16
- 28/32: gnu: Add python-pyvista., guix-commits, 2022/02/16
- 05/32: gnu: Add python-nitime., guix-commits, 2022/02/16