[arch-commits] Commit in python-pytest-param-files/repos (2 files)
Caleb Maclennan
alerque at gemini.archlinux.org
Thu Apr 7 10:25:18 UTC 2022
Date: Thursday, April 7, 2022 @ 10:25:17
Author: alerque
Revision: 1182783
archrelease: copy trunk to community-any
Added:
python-pytest-param-files/repos/community-any/
python-pytest-param-files/repos/community-any/PKGBUILD
(from rev 1182782, python-pytest-param-files/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-pytest-param-files/repos/community-any/PKGBUILD (from rev 1182782, python-pytest-param-files/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-04-07 10:25:17 UTC (rev 1182783)
@@ -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