diff options
| author | Marius Bakke <marius@gnu.org> | 2022-01-22 09:28:52 +0100 |
|---|---|---|
| committer | Marius Bakke <marius@gnu.org> | 2022-01-22 10:23:01 +0100 |
| commit | 36481d00de7137d055368f92c409c917a6fadfe8 (patch) | |
| tree | bf069d61a3dc5ef01e3899fe5474957d3a0c7360 /gnu/packages/python-check.scm | |
| parent | af473726b20ca8a3128062fb1a4a544de31b0b37 (diff) | |
gnu: Add python-pytest-metadata.
* gnu/packages/python-check.scm (python-pytest-metadata): New variable.
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 9eee1a621cf..2ab6686bbc8 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> | 5 | ;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 6 | ;;; Copyright © 2019, 2021 Hartmut Goebel <h.goebel@crazy-compilers.com> | 6 | ;;; Copyright © 2019, 2021 Hartmut Goebel <h.goebel@crazy-compilers.com> |
| 7 | ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu> | 7 | ;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu> |
| 8 | ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> | 8 | ;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org> |
| 9 | ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com> | 9 | ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com> |
| 10 | ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net> | 10 | ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net> |
| 11 | ;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org> | 11 | ;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org> |
| @@ -44,6 +44,7 @@ | |||
| 44 | #:use-module (guix utils) | 44 | #:use-module (guix utils) |
| 45 | #:use-module ((guix licenses) #:prefix license:) | 45 | #:use-module ((guix licenses) #:prefix license:) |
| 46 | #:use-module (guix packages) | 46 | #:use-module (guix packages) |
| 47 | #:use-module (guix gexp) | ||
| 47 | #:use-module (guix git-download) | 48 | #:use-module (guix git-download) |
| 48 | #:use-module (guix download) | 49 | #:use-module (guix download) |
| 49 | #:use-module (guix build-system python)) | 50 | #:use-module (guix build-system python)) |
| @@ -524,6 +525,32 @@ namespace which can be used to register helper functions without requiring | |||
| 524 | someone to import them in their actual tests to use them.") | 525 | someone to import them in their actual tests to use them.") |
| 525 | (license license:asl2.0))) | 526 | (license license:asl2.0))) |
| 526 | 527 | ||
| 528 | (define-public python-pytest-metadata | ||
| 529 | (package | ||
| 530 | (name "python-pytest-metadata") | ||
| 531 | (version "1.11.0") | ||
| 532 | (source | ||
| 533 | (origin | ||
| 534 | (method url-fetch) | ||
| 535 | (uri (pypi-uri "pytest-metadata" version)) | ||
| 536 | (sha256 | ||
| 537 | (base32 "1wgcz0w053lnjln0081kjmfflaq7bwncxdzx7k63kr9lkpa0ddbi")))) | ||
| 538 | (build-system python-build-system) | ||
| 539 | (arguments | ||
| 540 | (list #:phases | ||
| 541 | #~(modify-phases %standard-phases | ||
| 542 | (replace 'check | ||
| 543 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 544 | (when tests? | ||
| 545 | (invoke "pytest" "-vv"))))))) | ||
| 546 | (native-inputs (list python-pytest python-setuptools-scm)) | ||
| 547 | (home-page "https://github.com/pytest-dev/pytest-metadata") | ||
| 548 | (synopsis "Access test session metadata with Pytest") | ||
| 549 | (description | ||
| 550 | "@code{pytest-metadata} is a @command{pytest} plugin that provides | ||
| 551 | access to test session metadata.") | ||
| 552 | (license license:mpl2.0))) | ||
| 553 | |||
| 527 | (define-public python-pytest-openfiles | 554 | (define-public python-pytest-openfiles |
| 528 | (package | 555 | (package |
| 529 | (name "python-pytest-openfiles") | 556 | (name "python-pytest-openfiles") |
