[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/13: gnu: Add python-pytest-qt.
From: |
guix-commits |
Subject: |
07/13: gnu: Add python-pytest-qt. |
Date: |
Sat, 8 May 2021 05:28:54 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit ce13e4a524b42f034220bdff116f4e9f5bf8be69
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Tue Apr 20 05:22:36 2021 +0000
gnu: Add python-pytest-qt.
* gnu/packages/python-check.scm (python-pytest-qt): New variable.
---
gnu/packages/python-check.scm | 39 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 01922b0..15dbe65 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -7,7 +7,7 @@
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
-;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
@@ -37,6 +37,7 @@
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages qt)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (guix utils)
@@ -1084,6 +1085,42 @@ variables in the @file{pytest.ini} file.")
libraries.")
(license license:expat)))
+(define-public python-pytest-qt
+ (package
+ (name "python-pytest-qt")
+ (version "3.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-qt" version))
+ (sha256
+ (base32 "09c9psfn3zigpaw1l1cmynpa3csxa49wc2ih5lzl24skdkw0njvi"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:test-target "pytest"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-qpa
+ (lambda _
+ (setenv "QT_QPA_PLATFORM" "offscreen")
+ #t)))))
+ (propagated-inputs
+ `(("python-pyqt" ,python-pyqt)))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-pytest-runner" ,python-pytest-runner)
+ ("python-setuptools-scm" ,python-setuptools-scm)))
+ (home-page "https://github.com/pytest-dev/pytest-qt")
+ (synopsis "Pytest support for PyQt and PySide applications")
+ (description
+ "@code{pytest-qt} is a Pytest plugin that allows programmers to write
+tests for PyQt5 and PySide2 applications.
+
+The main usage is to use the @code{qtbot} fixture, responsible for handling
+@code{qApp} creation as needed and provides methods to simulate user
+interaction, like key presses and mouse clicks.")
+ (license license:expat)))
+
(define-public python-codacy-coverage
(package
(name "python-codacy-coverage")
- branch master updated (a9a67da -> dd05a93), guix-commits, 2021/05/08
- 01/13: gnu: Add python-textdistance., guix-commits, 2021/05/08
- 02/13: gnu: Add python-three-merge., guix-commits, 2021/05/08
- 03/13: gnu: Add python-pyls-black., guix-commits, 2021/05/08
- 04/13: gnu: Add python-tinycss., guix-commits, 2021/05/08
- 05/13: gnu: Add python-qstylizer., guix-commits, 2021/05/08
- 08/13: gnu: Add python-qtsass., guix-commits, 2021/05/08
- 07/13: gnu: Add python-pytest-qt.,
guix-commits <=
- 10/13: gnu: Add python-entrypoint2., guix-commits, 2021/05/08
- 11/13: gnu: Add python-pyvirtualdisplay., guix-commits, 2021/05/08
- 06/13: gnu: python-language-server: Enable tests., guix-commits, 2021/05/08
- 12/13: gnu: Add python-pytest-xvfb., guix-commits, 2021/05/08
- 13/13: gnu: python-language-server: Relax dependency versions., guix-commits, 2021/05/08
- 09/13: gnu: Add python-easyprocess., guix-commits, 2021/05/08