guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 85de1beb53090e453d7f35de97186d321bc9013d
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 12 14:43:23 2025 +0200
gnu: Add python-pytest-home.
* gnu/packages/python-check.scm (python-pytest-home): New variable.
Change-Id: I9b41fded02eea4120a0c36b2f95d4de6a8d60e22
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-check.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 1071335743..fbd3712a79 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -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")