From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4HjEAJ6qYmKANQAAbAwnHQ (envelope-from ) for ; Fri, 22 Apr 2022 15:16:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +IDCAJ6qYmLTlwAA9RJhRA (envelope-from ) for ; Fri, 22 Apr 2022 15:16:14 +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 B3A621274A for ; Fri, 22 Apr 2022 15:16:13 +0200 (CEST) Received: from localhost ([::1]:36204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nht8u-0006OA-Q8 for larch@yhetil.org; Fri, 22 Apr 2022 09:16:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhsco-0000om-52 for guix-patches@gnu.org; Fri, 22 Apr 2022 08:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhscn-00061M-Rn for guix-patches@gnu.org; Fri, 22 Apr 2022 08:43:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhscn-0004ws-Pg for guix-patches@gnu.org; Fri, 22 Apr 2022 08:43:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55060] [PATCH v2 5/6] gnu: Add python-scooby. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Apr 2022 12:43:01 +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.165063133218939 (code B ref 55060); Fri, 22 Apr 2022 12:43:01 +0000 Received: (at 55060) by debbugs.gnu.org; 22 Apr 2022 12:42:12 +0000 Received: from localhost ([127.0.0.1]:51917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhsbv-0004vL-KZ for submit@debbugs.gnu.org; Fri, 22 Apr 2022 08:42:12 -0400 Received: from mail-4022.proton.ch ([185.70.40.22]:35337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhsbt-0004ty-FA for 55060@debbugs.gnu.org; Fri, 22 Apr 2022 08:42:06 -0400 Date: Fri, 22 Apr 2022 12:41:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1650631319; bh=CQLqEdB7Y1T2BJ8QmLOgOjKNcBZ/UWI77DE0Syr4ZaA=; 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=FX8gHFDlWApuA2ZcPkyPLDcbjLiFrovacW1hmKaj4v7Wll49yGQ2hZ9G2u6MYjxB9 4Enx9vZ3NgvLK9CkiC6KiW9Fthsim1if55z12UKckW5IeWqfWHoRu7ttuMEoB6Bwyt 3ltiZMrPRzPuowbmm9fTBHSVEn4SIfgzrkI2doRAFvDUhmLcQdR4gWf/WLid07VHZN gAFsYS3SdteeIT3mqvscyKGatbQONR3YGbP993MzzT21k+ON+P7Jzf/qR6W1l1BLNW yfWHanLc+uAm2U5hpuzGp801vZcqt5n53kYNN/KYWS7SbccJc18dl2PAbkrmYBdSdf Ls6/US7gAnkrA== From: "Paul A. Patience" Message-ID: <20220422124118.66783-6-paul@apatience.com> In-Reply-To: <20220422124118.66783-1-paul@apatience.com> References: <20220422124118.66783-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=1650633373; 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=CQLqEdB7Y1T2BJ8QmLOgOjKNcBZ/UWI77DE0Syr4ZaA=; b=rV1yudNx8IkX2ugKa2W0S02HT8SATXN+5c2cqEFY4B5BG3wJgr07SKUsjnFfkMzXUCEv5N UHBivMh/JQ/AHGqSK61KB2zkaUFU9RmouAR3FuH9NckbgQsYKpoHqrm+GfC+cvuMLyd1r/ bq8EfLH5pAa1sLl9Fsblux9pBRuuhZUcQyRI7GCtuKCn6rjklwWgTdViFDpCh287ALXCt7 o9Dvvq9GQ7nYF+fCylxHFS/y75c/CpzwwNe3avS2bT5deYj3JxSgponIu1QSPQuX5n9lEg a0ElT5Ur9TZBbucT3wm5EhY0rXshZOmOISkfv9rGSpsDHupUaF5xJHt2v1Mo3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650633373; a=rsa-sha256; cv=none; b=K001DGLDLpXPI1NPsPAAIE5u8405Z57lW1CX0odkFaJA81qGks3KLV4mz1X9h5LkMhdrML foUsgUra9+m7HALeUd1XqTTHbdHsO9Ynrpj6Xpb1Rb+daQwkVAVRtekq4z2kSAINblJ8Um 7xYf35JQsfdF1OxgvIzF6hFOeU/4l+35i0bUz4GU/0ZxfuomJin8A2NZEbX7ApUue5rXar QktO1Eiraqd7ZaKKmB/4Pe4IKKFuzzIqt4tX7OnGLwhg/5VA8ZSOUl9dz0mb/fQ+4uAZ2G f/zTops2sGIqjGj7RRWD1AN5tRW4dciu26iMX8E//GExP0FVfYo9FxHHoLwYlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=FX8gHFDl; 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.47 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=FX8gHFDl; 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: B3A621274A X-Spam-Score: 3.47 X-Migadu-Scanner: scn1.migadu.com X-TUID: +JqKGiGvPauE * gnu/packages/python-xyz.scm (python-scooby): New variable. --- gnu/packages/python-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9a5d311680..3a49f46555 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. ;;; @@ -29534,3 +29535,50 @@ (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)) + (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.*") "") + (("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 "Great Dane turned Python environment detective") + (description + "This is a lightweight tool for easily reporting your Python +environment's package versions and hardware resources.") + (license license:expat))) -- 2.35.1