gnu: Add python-sybil.
* gnu/packages/python-check.scm (python-sybil): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
		
							parent
							
								
									8ffd8fc64e
								
							
						
					
					
						commit
						919fdd6fcc
					
				
					 1 changed files with 29 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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,31 @@ 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 examples in 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)))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue