gnu: Add python-pytest-vcr.
* gnu/packages/python-check.scm (python-pytest-vcr): New variable.master
parent
3eca7ff968
commit
6e003bd4cc
|
@ -1,7 +1,7 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||||
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
|
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
|
||||||
|
@ -30,6 +30,7 @@
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix build-system python))
|
#:use-module (guix build-system python))
|
||||||
|
|
||||||
|
@ -109,6 +110,37 @@ detect the absence of a cassette file and once again record all HTTP
|
||||||
interactions, which will update them to correspond to the new API.")
|
interactions, which will update them to correspond to the new API.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public python-pytest-vcr
|
||||||
|
(package
|
||||||
|
(name "python-pytest-vcr")
|
||||||
|
(version "1.0.2")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/ktosiek/pytest-vcr")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1i6fin91mklvbi8jzfiswvwf1m91f43smpj36a17xrzk4gisfs6i"))))
|
||||||
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(add-installed-pythonpath inputs outputs)
|
||||||
|
(invoke "pytest" "tests/"))))))
|
||||||
|
(propagated-inputs
|
||||||
|
`(("python-pytest" ,python-pytest)
|
||||||
|
("python-vcrpy" ,python-vcrpy)))
|
||||||
|
(home-page "https://github.com/ktosiek/pytest-vcr")
|
||||||
|
(synopsis "Plugin for managing VCR.py cassettes")
|
||||||
|
(description
|
||||||
|
"Plugin for managing VCR.py cassettes.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-pytest-checkdocs
|
(define-public python-pytest-checkdocs
|
||||||
(package
|
(package
|
||||||
(name "python-pytest-checkdocs")
|
(name "python-pytest-checkdocs")
|
||||||
|
|
Reference in New Issue