Package Details: python-screeninfo 0.8.1-2

Git Clone URL: https://aur.archlinux.org/python-screeninfo.git (read-only, click to copy)
Package Base: python-screeninfo
Description: Python library to fetch location and size of physical screens
Upstream URL: https://github.com/rr-/screeninfo
Licenses: MIT
Submitter: twa022
Maintainer: twa022
Last Packager: twa022
Votes: 6
Popularity: 0.87
First Submitted: 2019-05-19 15:05 (UTC)
Last Updated: 2024-01-28 20:26 (UTC)

Latest Comments

micwoj92 commented on 2023-12-25 02:28 (UTC)

This addresses issue raised by previous comment.

diff --git a/PKGBUILD b/PKGBUILD
index bdfa764..c2c3330 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=python-screeninfo
 pkgver=0.8.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Python library to fetch location and size of physical screens"
 arch=('any')
 url="https://github.com/rr-/screeninfo"
@@ -11,17 +11,17 @@ depends=('python')
 optdepends=('libxinerama: xinerama backend'
            'libxrandr: randr backend'
            'libdrm: experimental DRM backend')
-makedepends=('python-poetry' 'python-pip')
+makedepends=('python-build' 'python-poetry-core' 'python-installer')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/rr-/${pkgname/python-/}/archive/${pkgver}.tar.gz")
 sha256sums=('f6b3eeb22196a253611df1d3ee8fff549f2654730823ef4d2533018c27f13b09')

 build() {
   cd "${srcdir}/${pkgname/python-/}-${pkgver}"
-  poetry build -f wheel
+  python -m build --wheel --no-isolation
 }

 package() {
-  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps "${pkgname/python-/}-${pkgver}"/dist/*.whl
-
+  cd "${srcdir}/${pkgname/python-/}-${pkgver}"
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${pkgname/python-/}-${pkgver}/LICENSE.md"
 }

yochananmarqos commented on 2022-12-14 23:02 (UTC)

Please follow Python package guidelines. Pip should not be used.