[arch-commits] Commit in python-helpdev/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 22:31:54 UTC 2021
Date: Tuesday, November 30, 2021 @ 22:31:54
Author: felixonmars
Revision: 1059040
archrelease: copy trunk to community-staging-any
Added:
python-helpdev/repos/community-staging-any/
python-helpdev/repos/community-staging-any/PKGBUILD
(from rev 1059034, python-helpdev/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-helpdev/repos/community-staging-any/PKGBUILD (from rev 1059034, python-helpdev/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 22:31:54 UTC (rev 1059040)
@@ -0,0 +1,33 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=helpdev
+pkgname=python-${_pkg}
+pkgver=0.7.1
+pkgrel=4
+pkgdesc="Helping users and developers to get information about the environment to report bugs"
+arch=(any)
+url="https://gitlab.com/dpizetta/helpdev"
+license=(MIT CCPL)
+depends=(python-importlib-metadata python-psutil)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-pip)
+#PyPi does not have tests nor LICENSE
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/-/archive/v${pkgver}/${_pkg}-v${pkgver}.tar.bz2)
+sha256sums=('b52f83d6d3935500da42b434747569660d526cd36e88069bd67a8747cca488fc')
+
+build() {
+ cd ${_pkg}-v${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-v${pkgver}
+ PYTHONPATH="${PWD}/build/lib/" pytest tests
+}
+
+package() {
+ cd ${_pkg}-v${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
More information about the arch-commits
mailing list