Date: Sunday, April 9, 2023 @ 17:27:29
Author: felixonmars
Revision: 1443309
archrelease: copy trunk to community-staging-any
Added:
python-pyct/repos/community-staging-any/
python-pyct/repos/community-staging-any/PKGBUILD
(from rev 1443308, python-pyct/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-pyct/repos/community-staging-any/PKGBUILD (from rev 1443308,
python-pyct/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-09 17:27:29 UTC (rev 1443309)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+_pkg=pyct
+pkgname=python-${_pkg}
+pkgver=0.4.8
+pkgrel=6
+pkgdesc="Python packaging Common Tasks"
+arch=(any)
+url="https://github.com/pyviz-dev/pyct"
+license=(BSD)
+depends=(python-param)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-requests python-yaml)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ pytest pyct -v --pyargs
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build
--optimize=1
+
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}