~ruther/guix-local

85de1beb53090e453d7f35de97186d321bc9013d — Nicolas Graves 4 months ago 3691937
gnu: Add python-pytest-home.

* gnu/packages/python-check.scm (python-pytest-home): New variable.

Change-Id: I9b41fded02eea4120a0c36b2f95d4de6a8d60e22
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 33 insertions(+), 0 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +33 -0
@@ 2596,6 2596,39 @@ which can be used to register helper functions without requiring someone to
import them in their actual tests to use them.")
    (license license:asl2.0)))

(define-public python-pytest-home
  (package
    (name "python-pytest-home")
    (version "0.6.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/jaraco/pytest-home")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "151xx48dahbh7yx2a9cr9f2iy2i6f7s3zsm4zn5apvgl9qmjhkk7"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'set-version
            (lambda _
              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
    (propagated-inputs (list python-pytest))
    (native-inputs
     (list git-minimal
           python-pytest
           python-setuptools
           python-setuptools-scm))
    (home-page "https://github.com/jaraco/pytest-home")
    (synopsis "Home directory fixtures")
    (description
     "This package provides home directory fixtures for pytest.")
    (license license:expat)))

(define-public python-pytest-html
  (package
    (name "python-pytest-html")