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 qGaVKfVCYGJWHAEAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 19:29:25 +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 oCF+KfVCYGLr+gAA9RJhRA (envelope-from ) for ; Wed, 20 Apr 2022 19:29:25 +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 653DD294F6 for ; Wed, 20 Apr 2022 19:29:25 +0200 (CEST) Received: from localhost ([::1]:34874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE8q-0007zs-8h for larch@yhetil.org; Wed, 20 Apr 2022 13:29:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhE8V-0007O7-83 for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhE8U-0003CN-Uj for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhE8U-0006JH-S9 for guix-patches@gnu.org; Wed, 20 Apr 2022 13:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55044] [PATCH 1/8] gnu: Add python-sybil. Resent-From: Felix Gruber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Apr 2022 17:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55044 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55044@debbugs.gnu.org Cc: Felix Gruber Received: via spool by 55044-submit@debbugs.gnu.org id=B55044.165047570324095 (code B ref 55044); Wed, 20 Apr 2022 17:29:02 +0000 Received: (at 55044) by debbugs.gnu.org; 20 Apr 2022 17:28:23 +0000 Received: from localhost ([127.0.0.1]:47327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7r-0006GY-8C for submit@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:23 -0400 Received: from mout02.posteo.de ([185.67.36.66]:41695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhE7p-0006GH-Jm for 55044@debbugs.gnu.org; Wed, 20 Apr 2022 13:28:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 84312240107 for <55044@debbugs.gnu.org>; Wed, 20 Apr 2022 19:28:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1650475695; bh=ypW5KyojjvybpNypPbErH2WQP2d+FgnoGIl9I7HAQyw=; h=From:To:Cc:Subject:Date:From; b=P45CR9KdeDYHs5mh8XnVQ36MJqP0vk2N4me8uad+K2WSC1kZF0jxiUuVfuxz0tpiK PLe3qc/SnCcg9RVF7h28aoKZ9YbiFqNHNguwgzkt6ojlZhXmWJs2nYodMbtY2RnkeL U88TrRCYV1mlAc8SVfZjtySlb5Y97JZ0i4a+ekZmG7vWcn3f6Ki38dzqH4UqWtfKAC Wa9UowWs7NLDi1xutDuwuq/Dv5RIfFD998DnYXaVjIi2NykL8LURcBZzFOJqc54+IA KnkiyLKmpv/w6WsQXyJ1bAwVub/lTLsd3QzoJ710yWG/QfTJc3qLBeQpCD17CbBWnM 57GyCACVwoA2w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Kk71B4ct6z6tmJ; Wed, 20 Apr 2022 19:28:14 +0200 (CEST) From: Felix Gruber Date: Wed, 20 Apr 2022 17:27:57 +0000 Message-Id: <20220420172804.8849-1-felgru@posteo.net> In-Reply-To: <20220420172518.8609-1-felgru@posteo.net> References: <20220420172518.8609-1-felgru@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , 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=1650475765; h=from:from:sender:sender: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=LJxXSqK2XwpVvWqZiCw3Z1z18BwYsNhrEqsJEupjA8E=; b=Up5/Kj/+0lMyO0LMNaWXSQOohLcJRi1xDT66uYWax3NaoyPRI7D0VXHogjAGbnE/8sc2Q4 6UMqLD2p0n+ggNPY64Z87Qo7fiyFQ9JYX8kv+qqE6QwB6RBKcTiV8ydUV9kW0VmgW8LkOD 0LA4Z7JczQSvrq8vmle/r+ikhPmSVtDVA+E/NEPUO4zyphyEewXX/iy5MhYLdng/2GhQMd 2WrusioDw9fK+sCtEHP4epXRlM/2UHG0bf2UQo+CbqRFuMBP6q2UowLEcOFHN1HkoVyvoP XNjstq640ZgXH9KGc8xS39kRQdJfUceH4vc1AlyGTOsBSHZe9AZHA1G/abmqTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650475765; a=rsa-sha256; cv=none; b=GTouBkfDWfVoSUg/12UexTqP5BqL+Sj8o+K7NfMcmvnHbHNTs23jecKJCFoD0XCm5+IwNc rlKBg6oeQFPfjBcM6dyFFTvlUI47PJTBFFvtCOX2zZ6vP4K8hFuZhDSKcohJUfgCQ27Kll 9cz8QvIJ8+DhwpY+qBcKNOuJhedH2WbTikJpy7k/GLqnUiKwhtZAy5ItqAtaT3zn3N9p9T XzRkUZFYj6pa9oERjzhE+sUhS8vI8JKiu9qBR6KPy7mdRa8QcD+el1Jkdr8pi4cdnE7EBH 0elLhvLsRysrz7FB2dEzGuyo5+/KpkzvgXPbqiNfH9NPSJSmrmA4++8YixPqOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=P45CR9Kd; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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: 5.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=P45CR9Kd; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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: 653DD294F6 X-Spam-Score: 5.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: g/8Hs6NEv+pP * gnu/packages/python-check.scm (python-sybil): New variable. --- gnu/packages/python-check.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 2d35eb720e..1576a38b09 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2021, 2022 Guillaume Le Vaillant ;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; Copyright © 2022 Malte Frank Gerdes +;;; Copyright © 2022 Felix Gruber ;;; ;;; This file is part of GNU Guix. ;;; @@ -2056,3 +2057,32 @@ eliminate flaky failures.") Python objects. It tries to use the objects available in the standard @code{unittest} module.") (license license:expat))) + +(define-public python-sybil + (package + (name "python-sybil") + (version "3.0.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "sybil" version)) + (sha256 + (base32 "03ak1w93linfqx6c9lwgq5niyy3j9yblv4ip40hmlzmg0hidq0kg")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) + (native-inputs (list python-pytest python-pytest-cov)) + (home-page "https://github.com/simplistix/sybil") + (synopsis + "Automated testing for the examples in your code and documentation.") + (description + "This library provides a way to check examples in your code and +documentation by parsing them from their source and evaluating the +parsed examples as part of your normal test run. Integration is +provided for the main Python test runners.") + (license license:expat))) -- 2.30.2