all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Paul A. Patience" <paul@apatience.com>
To: 55060@debbugs.gnu.org
Cc: "Paul A. Patience" <paul@apatience.com>
Subject: [bug#55060] [PATCH v3 5/6] gnu: Add python-scooby.
Date: Mon, 25 Apr 2022 17:55:49 +0000	[thread overview]
Message-ID: <20220425175515.54516-6-paul@apatience.com> (raw)
In-Reply-To: <20220425175515.54516-1-paul@apatience.com>

* gnu/packages/python-xyz.scm (python-scooby): New variable.
---
 gnu/packages/python-xyz.scm | 67 +++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9a5d311680..1eeec2564e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -119,6 +119,7 @@
 ;;; Copyright © 2022 Evgeny Pisemsky <evgeny@pisemsky.com>
 ;;; Copyright © 2022 drozdov <drozdov@portalenergy.tech>
 ;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
+;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29534,3 +29535,69 @@ (define-public python-sre-yield
 uses the parsed regular expression, so you get a much more accurate result
 than trying to just split strings.")
     (license license:asl2.0)))
+
+(define-public python-scooby
+  (package
+    (name "python-scooby")
+    (version "0.5.12")
+    (source
+     ;; The PyPI tarball does not contain the tests.
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/banesullivan/scooby")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1gkpmz8wl3jg8ylf1na35308sznw2g9wx33zqlyq5i2gpy2ml9mw"))))
+    (build-system python-build-system)
+    (native-inputs
+     (list python-beautifulsoup4
+           python-numpy
+           python-pytest
+           python-pytest-cov
+           python-scipy))
+    (propagated-inputs
+     (list python-psutil))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-tests
+           (lambda _
+             (substitute* "tests/test_scooby.py"
+               ;; The test suite uses the no-version PyPI package
+               ;; (https://pypi.org/project/no-version/),
+               ;; but it doesn't seem worth packaging in Guix just for this.
+               (("scooby\\.report\\.VERSION_NOT_FOUND")
+                "scooby.report.MODULE_NOT_FOUND")
+               (("^ +import no_version  # noqa.*") "")
+               ;; The test suite expects an OSError when importing a missing
+               ;; module.
+               ;; However, a ModuleNotFoundError is thrown.
+               (("with pytest\\.raises\\(OSError\\):")
+                "with pytest.raises(ModuleNotFoundError):"))))
+         (replace 'check
+           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "pytest")))))))
+    (home-page "https://github.com/banesullivan/scooby")
+    (synopsis "Report hardware information and Python package versions")
+    (description
+     "The Scooby package reports the following information about the currently
+running system:
+
+@itemize
+@item operating system name;
+@item hardware information including machine type (e.g., @samp{i386},
+@samp{x86_64}, etc.), CPU count and total RAM;
+@item Python environment (e.g., Python, IPython, etc.);
+@item file system name;
+@item Python version;
+@item versions of specified Python packages.
+@end itemize
+
+It can generate reports as HTML tables or plain text lists.
+
+Scooby has no required dependencies, and only few optional dependencies.")
+    (license license:expat)))
--
2.35.1






  parent reply	other threads:[~2022-04-25 17:57 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-22  1:00 [bug#55060] [PATCH 0/6] gnu: Add python-pyvista Paul A. Patience
2022-04-22  1:02 ` [bug#55060] [PATCH 1/6] gnu: python-meshio: Remove input labels Paul A. Patience
2022-04-22  1:02   ` [bug#55060] [PATCH 2/6] gnu: python-meshio: Remove trailing booleans Paul A. Patience
2022-04-22  1:02   ` [bug#55060] [PATCH 3/6] gnu: python-meshio: Honor #:tests? flag Paul A. Patience
2022-04-22  1:03   ` [bug#55060] [PATCH 4/6] gnu: python-meshio: Update to 5.3.4 Paul A. Patience
2022-04-22  1:03   ` [bug#55060] [PATCH 5/6] gnu: Add python-scooby Paul A. Patience
2022-04-22 17:53     ` Maxime Devos
2022-04-22 17:55     ` Maxime Devos
2022-04-22 18:07     ` Maxime Devos
2022-04-22 19:26       ` Paul A. Patience
2022-04-22 21:43         ` Maxime Devos
2022-04-22 21:46         ` Maxime Devos
2022-04-29 20:52         ` Maxime Devos
2022-05-02 15:00           ` Paul A. Patience
2022-05-02 15:06             ` Maxime Devos
2022-05-02 15:33               ` Paul A. Patience
2022-05-02 16:18                 ` Maxime Devos
2022-04-22  1:03   ` [bug#55060] [PATCH 6/6] gnu: Add python-pyvista Paul A. Patience
2022-04-22 18:04     ` Maxime Devos
2022-04-22 19:36       ` Paul A. Patience
2022-04-22 21:49         ` Maxime Devos
2022-04-22 12:41 ` [bug#55060] [PATCH v2 0/6] " Paul A. Patience
2022-04-22 12:41   ` [bug#55060] [PATCH v2 1/6] gnu: python-meshio: Remove input labels Paul A. Patience
2022-04-22 12:41   ` [bug#55060] [PATCH v2 2/6] gnu: python-meshio: Remove trailing booleans Paul A. Patience
2022-04-22 12:41   ` [bug#55060] [PATCH v2 3/6] gnu: python-meshio: Honor #:tests? flag Paul A. Patience
2022-04-22 12:41   ` [bug#55060] [PATCH v2 4/6] gnu: python-meshio: Update to 5.3.4 Paul A. Patience
2022-04-22 17:36     ` Maxime Devos
2022-04-22 12:41   ` [bug#55060] [PATCH v2 5/6] gnu: Add python-scooby Paul A. Patience
2022-04-22 17:51     ` Maxime Devos
2022-04-22 12:41   ` [bug#55060] [PATCH v2 6/6] gnu: Add python-pyvista Paul A. Patience
2022-04-25 17:55 ` [bug#55060] [PATCH v3 0/6] " Paul A. Patience
2022-04-25 17:55   ` [bug#55060] [PATCH v3 1/6] gnu: python-meshio: Remove input labels Paul A. Patience
2022-04-25 17:55   ` [bug#55060] [PATCH v3 2/6] gnu: python-meshio: Remove trailing booleans Paul A. Patience
2022-04-25 17:55   ` [bug#55060] [PATCH v3 3/6] gnu: python-meshio: Honor #:tests? flag Paul A. Patience
2022-04-25 17:55   ` [bug#55060] [PATCH v3 4/6] gnu: python-meshio: Update to 5.3.4 Paul A. Patience
2022-04-25 17:55   ` Paul A. Patience [this message]
2022-04-25 17:55   ` [bug#55060] [PATCH v3 6/6] gnu: Add python-pyvista Paul A. Patience
2022-05-02 21:16 ` [bug#55060] [PATCH v4 0/8] " Paul A. Patience
2022-05-02 21:16   ` [bug#55060] [PATCH v4 1/8] gnu: python-meshio: Remove input labels Paul A. Patience
2022-05-02 21:16   ` [bug#55060] [PATCH v4 2/8] gnu: python-meshio: Remove trailing booleans Paul A. Patience
2022-05-02 21:16   ` [bug#55060] [PATCH v4 3/8] gnu: python-meshio: Honor #:tests? flag Paul A. Patience
2022-05-02 21:17   ` [bug#55060] [PATCH v4 4/8] gnu: python-meshio: Update to 5.3.4 Paul A. Patience
2022-05-02 21:17   ` [bug#55060] [PATCH v4 5/8] gnu: Add python-pyperf Paul A. Patience
2022-05-02 21:17   ` [bug#55060] [PATCH v4 6/8] gnu: Add python-pyvips Paul A. Patience
2022-05-02 21:17   ` [bug#55060] [PATCH v4 7/8] gnu: Add python-scooby Paul A. Patience
2022-05-02 21:17   ` [bug#55060] [PATCH v4 8/8] gnu: Add python-pyvista Paul A. Patience
2022-05-23 13:56   ` bug#55060: [PATCH 0/6] " Ludovic Courtès

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=20220425175515.54516-6-paul@apatience.com \
    --to=paul@apatience.com \
    --cc=55060@debbugs.gnu.org \
    /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.