[arch-commits] Commit in (4 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Apr 7 10:23:44 UTC 2022
Date: Thursday, April 7, 2022 @ 10:23:43
Author: alerque
Revision: 1182782
Initial add of python-pytest-param-files, new dependency of python-myst-parser
Added:
python-pytest-param-files/
python-pytest-param-files/repos/
python-pytest-param-files/trunk/
python-pytest-param-files/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Added: python-pytest-param-files/trunk/PKGBUILD
===================================================================
--- python-pytest-param-files/trunk/PKGBUILD (rev 0)
+++ python-pytest-param-files/trunk/PKGBUILD 2022-04-07 10:23:43 UTC (rev 1182782)
@@ -0,0 +1,36 @@
+# Maintainer: Caleb Maclennana <caleb at alerque.com>
+
+pkgname=python-pytest-param-files
+_pyname=${pkgname#python-}
+pkgver=0.3.4
+pkgrel=1
+pkgdesc='Create pytest parametrize decorators from external files '
+arch=(any)
+url="https://github.com/chrisjsewell/$_pyname"
+license=(MIT)
+depends=(python
+ python-pytest)
+makedepends=(python-{build,installer}
+ python-flit
+ python-wheel)
+# _archive="$_pyname-$pkgver"
+# source=("$url/archive/v$pkgver/$_archive.tar.gz")
+_archive="${_pyname//-/_}-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
+sha256sums=('6c0c324f9d91bd16a5d63ab5bb78bd2d19ca5c6f2b68b6acbc4ae61fb1b6893d')
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+}
+
+check() {
+ cd "$_archive"
+ # pytest
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
More information about the arch-commits
mailing list