[arch-commits] Commit in python-yaspin/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Oct 20 08:28:11 UTC 2020
Date: Tuesday, October 20, 2020 @ 08:28:11
Author: felixonmars
Revision: 727518
archrelease: copy trunk to community-testing-any
Added:
python-yaspin/repos/community-testing-any/
python-yaspin/repos/community-testing-any/PKGBUILD
(from rev 727517, python-yaspin/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-yaspin/repos/community-testing-any/PKGBUILD (from rev 727517, python-yaspin/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-10-20 08:28:11 UTC (rev 727518)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-yaspin
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="Yet Another Terminal Spinner"
+url="https://github.com/pavdmyt/yaspin"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-dephell')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pavdmyt/yaspin/archive/v$pkgver.tar.gz")
+sha512sums=('c57d241a7483d70f816958887a5421d3ea5f85a965244f803300f0c9dd25216327fc9a5a513ab9f18cb7bc66ab1d905ade1ab7ffb62d376d8d1a7719b7cc5d86')
+
+prepare() {
+ cd yaspin-$pkgver
+
+ # poetry-generated setup.py is badly broken in several ways, including
+ # distribution of tests in the built package as well as using distutils for
+ # bad metadata. See https://github.com/sdispater/poetry/issues/866
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd yaspin-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd yaspin-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd yaspin-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list