From patchwork Wed Apr 20 17:27:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Gruber X-Patchwork-Id: 38704 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9A34227BBEA; Wed, 20 Apr 2022 18:29:24 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5995327BBE9 for ; Wed, 20 Apr 2022 18:29:24 +0100 (BST) Received: from localhost ([::1]:34874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhE8p-0007zs-GD for patchwork@mira.cbaines.net; Wed, 20 Apr 2022 13:29:23 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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)))