all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felix Gruber <felgru@posteo.net>
To: 55044@debbugs.gnu.org
Cc: Felix Gruber <felgru@posteo.net>
Subject: [bug#55044] [PATCH 1/8] gnu: Add python-sybil.
Date: Wed, 20 Apr 2022 17:27:57 +0000	[thread overview]
Message-ID: <20220420172804.8849-1-felgru@posteo.net> (raw)
In-Reply-To: <20220420172518.8609-1-felgru@posteo.net>

* 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 <glv@posteo.net>
 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
 ;;; Copyright © 2022 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
+;;; Copyright © 2022 Felix Gruber <felgru@posteo.net>
 ;;;
 ;;; 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





  reply	other threads:[~2022-04-20 17:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-20 17:25 [bug#55044] [PATCH 0/8] Add python-scrapy Felix Gruber
2022-04-20 17:27 ` Felix Gruber [this message]
2022-04-20 17:27 ` [bug#55044] [PATCH 2/8] gnu: Add python-pydispatcher Felix Gruber
2022-04-20 17:27 ` [bug#55044] [PATCH 3/8] gnu: Add python-queuelib Felix Gruber
2022-04-20 17:28 ` [bug#55044] [PATCH 4/8] gnu: Add python-itemadapter Felix Gruber
2022-04-20 17:28 ` [bug#55044] [PATCH 5/8] gnu: Add python-protego Felix Gruber
2022-04-20 17:28 ` [bug#55044] [PATCH 6/8] gnu: Add python-parsel Felix Gruber
2022-04-20 17:28 ` [bug#55044] [PATCH 7/8] gnu: Add python-itemloaders Felix Gruber
2022-04-20 17:28 ` [bug#55044] [PATCH 8/8] gnu: Add python-scrapy Felix Gruber
2022-05-02 13:14 ` bug#55044: [PATCH 0/8] " Ludovic Courtès
2022-05-02 16:22   ` [bug#55044] " Felix Gruber

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=20220420172804.8849-1-felgru@posteo.net \
    --to=felgru@posteo.net \
    --cc=55044@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.