Subject: Re: [bug#44990] [PATCH v2 1/8] gnu: Add python-qtpy.

From: Efraim Flashner <[email-masked]>
Date: Mon, 21 Dec 2020 10:18:13 +0200

On Fri, Dec 11, 2020 at 09:18:26PM +0100, John Doe wrote:
> * gnu/packages/python-xyz.scm (python-qtpy): New variable.
> ---
>  gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)

I would put this in gnu/packages/qt actually

> 
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index d312e3172a..a92898c7f0 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -23222,3 +23222,28 @@ process.")
>       "Gamera is a toolkit for building document image recognition systems.")
>      (home-page "https://gamera.informatik.hsnr.de/")
>      (license license:gpl2+)))
> +
> +(define-public python-qtpy
> +  (package
> +    (name "python-qtpy")
> +    (version "1.9.0")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (pypi-uri "QtPy" version))
> +        (sha256
> +          (base32
> +            "13cw8l7zrhbdi03k1wl1pg9xdl4ahdfa7yz8gd0f23sxnm22rdrd"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +      `(("python-pyside2" ,python-pyside-2)))
> +    (arguments
> +      `(;; Not all supported bindings are packaged. Especially PyQt4.
> +	#:tests? #f))
> +    (home-page "https://github.com/spyder-ide/qtpy")
> +    (synopsis
> +     "Qt bindings (PyQt5, PyQt4 and PySide) and additional custom QWidgets")
> +    (description
> +     "Provides an abstraction layer on top of the various Qt bindings
> +(PyQt5, PyQt4 and PySide) and additional custom QWidgets.")
> +    (license license:expat)))
> -- 
> 2.29.2
> 

I tried a bit to get the tests working. It looks like python-pyside-2
should propagate python-shiboken, and I forgot about
python-pyqtwebengine, which looks like it's necessary to run the tests.
I haven't looked at the other patches yet, but I wonder how useful this
package is with just python-pyside-2 as an input.

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted