[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri May 13 11:12:35 UTC 2022
Date: Friday, May 13, 2022 @ 11:12:35
Author: felixonmars
Revision: 1201677
addpkg: python-pip-run 8.8.0-1
Added:
python-pip-run/
python-pip-run/repos/
python-pip-run/trunk/
python-pip-run/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Added: python-pip-run/trunk/PKGBUILD
===================================================================
--- python-pip-run/trunk/PKGBUILD (rev 0)
+++ python-pip-run/trunk/PKGBUILD 2022-05-13 11:12:35 UTC (rev 1201677)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pip-run
+pkgver=8.8.0
+pkgrel=1
+pkgdesc="Install packages and run Python with them"
+url="https://github.com/jaraco/pip-run"
+license=('MIT')
+arch=('any')
+depends=('python-autocommand' 'python-packaging' 'python-path' 'python-pip')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest' 'jupyter-nbformat' 'python-pytest-enabler')
+source=("https://github.com/jaraco/pip-run/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('301083a34dea08035819024f17d8108f9751a765cdfc8f2e273b948c7746111efedd80765a63c3ac145bdf7d2b41c9a0b2b20286181c4c94cbc5501fb81eb74d')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd pip-run-$pkgver
+ python -m build -wn
+}
+
+check() {
+ cd pip-run-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd pip-run-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list