From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qLS+IJVKcGIkeQAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 23:18:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8KOqIJVKcGL7BAAAauVa8A (envelope-from ) for ; Mon, 02 May 2022 23:18:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2A6EC29412 for ; Mon, 2 May 2022 23:18:13 +0200 (CEST) Received: from localhost ([::1]:35294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldQp-0005WH-Rw for larch@yhetil.org; Mon, 02 May 2022 17:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldQi-0005Qf-P3 for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldQi-0008Nv-FU for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldQi-0006RQ-Bf for guix-patches@gnu.org; Mon, 02 May 2022 17:18:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v4 7/8] gnu: Add python-scooby. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 May 2022 21:18:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55060 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55060@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 55060-submit@debbugs.gnu.org id=B55060.165152627224695 (code B ref 55060); Mon, 02 May 2022 21:18:04 +0000 Received: (at 55060) by debbugs.gnu.org; 2 May 2022 21:17:52 +0000 Received: from localhost ([127.0.0.1]:38177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQR-0006QA-Vr for submit@debbugs.gnu.org; Mon, 02 May 2022 17:17:52 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:27609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldQQ-0006Pq-4b for 55060@debbugs.gnu.org; Mon, 02 May 2022 17:17:46 -0400 Date: Mon, 02 May 2022 21:17:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1651526260; bh=kYsJn5OZnVtWCM/aNfmwkERJiVJVL8bfMWZV9rlzd3U=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=YjfXqAzXToglXAW50+4CbZlR88LeOxCoWfskSi2m1YJHIhSLnMPfH5EAbVWEU0Q0Q vUaBZW7VgF1w1+oWDCrQ91Dw0wMj6vSH6tSvQleWsrU4w/bO5J9nZWa9jTFm1zoaY7 pR/SJZs5zHiIjkf6/DaMHhgh7D4Ey/TnMYl9hY9XqnkBIZHtfYEoWZhymNzguWAWHC dGmBU2FkK0I0aUIn84EzLLfhjmHwNe269wRegSZEUkm+05jYj7+vQOVDQBKxQflJor brVY2WaDl6U6iAKBQheHKxqUePmZdRsO+EGudoMcrICeSnxCGKNbokAWpwOFaNaWac t0rVYSKjVJb8g== From: "Paul A. Patience" Message-ID: <20220502211624.689372-8-paul@apatience.com> In-Reply-To: <20220502211624.689372-1-paul@apatience.com> References: <20220502211624.689372-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651526293; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kYsJn5OZnVtWCM/aNfmwkERJiVJVL8bfMWZV9rlzd3U=; b=IHXW+gqzTjQ0mdx5MQiBiBDI+3sgsvqADWugnHC4N2Ed6U+wK2x7rBzjpi/OIN+xM6ENHo btVcMW7dNKRGJMrbBFSVZTrZas5gyYQU6Qp0VqOMtprzBGTl6Jvrbz4qLr/QlhEKpE0tq0 wocHAL6x3iVbKNxJs5M6MZqCR6t35NhoOPiWzny30XJlM+p23woRxaoYsqSEKe07c5okGN E9DCNb/8eak7m9wx28JebLqipKyAgYoMNEge8NUE3B1OdT4iLrPn+pYv6kySa+3T9/ZtB+ wq6qhpgRpvMZUKJa9EAiyfWqAoEaM3kgsGxq/En12NEj5f2TiK18dBO7edPyBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651526293; a=rsa-sha256; cv=none; b=Yt7kohaVbvhd2YJV0DR36EzKDiNlYhAN1Vulmq0WIkEnK53i0QnAKG8fE/82Pu2mZEA4oj MH82UqSJBf4MlzqqyxQYsjZcKxcHPJSYbixoDhtqefRQye1Uvdw0GPIpQQy+Chy/YEVC5b KjTQWH8t2lvQj/2ORR9H02THez8fM6mtf1VoPX/UfAZ/wgRKZXA5VlBrI5maGR7xJUhFYE bHzH1PQS5YcFePgFbb5VaI1xytlcPTGO/M1yupmMJgkegwyhIfV2fvrUMKvliNVnusttxr /3ENhgzcIEzvS5lZVw+YTFEyhb4O1t/tyWA+irdajWBGtJUEC2HhEG7ErV9DmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=YjfXqAzX; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=YjfXqAzX; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2A6EC29412 X-Spam-Score: 3.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: B2xBat2w9YAy * gnu/packages/python-xyz.scm (python-pyvips-for-python-scooby, python-scooby): New variables. --- gnu/packages/python-xyz.scm | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c70379a056..20dbcefde0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -119,6 +119,7 @@ ;;; Copyright =C2=A9 2022 Evgeny Pisemsky ;;; Copyright =C2=A9 2022 drozdov ;;; Copyright =C2=A9 2022 Peter Polidoro +;;; Copyright =C2=A9 2022 Paul A. Patience ;;; ;;; This file is part of GNU Guix. ;;; @@ -29641,3 +29642,83 @@ (define-public python-pyperf @item support multiple units: seconds, bytes and integer. @end itemize") (license license:expat))) + +;; Scooby requires for its test suite a =E2=80=98pyvips=E2=80=99 package t= hat is missing its +;; VIPS dependency. +(define python-pyvips-for-python-scooby + (package + (inherit python-pyvips) + (name "python-pyvips-for-python-scooby") + (arguments + (substitute-keyword-arguments (package-arguments python-pyvips) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'fix-paths) + ;; The checks won't succeed without VIPS. + (delete 'check) + (delete 'sanity-check))))) + (inputs + (modify-inputs (package-inputs python-pyvips) + (delete "vips"))) + (synopsis "pyvips for Scooby's test suite"))) + +(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-pyvips-for-python-scooby + 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 thi= s. + (("scooby\\.report\\.VERSION_NOT_FOUND") + "scooby.report.MODULE_NOT_FOUND") + (("^ +import no_version # noqa.*") "")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (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 curre= ntly +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.36.0