[arch-commits] Commit in python-spec/repos (community-any community-any/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Sun Aug 1 18:03:04 UTC 2021
Date: Sunday, August 1, 2021 @ 18:03:04
Author: felixonmars
Revision: 991982
archrelease: copy trunk to community-any
Added:
python-spec/repos/community-any/
python-spec/repos/community-any/PKGBUILD
(from rev 991981, python-spec/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-spec/repos/community-any/PKGBUILD (from rev 991981, python-spec/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-08-01 18:03:04 UTC (rev 991982)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-spec
+pkgver=1.4.1
+pkgrel=1
+pkgdesc="Specification-style nosetests output for Python"
+url="https://github.com/bitprophet/spec"
+license=('MIT')
+arch=('any')
+depends=('python-nose' 'python-six')
+makedepends=('python-setuptools')
+source=("https://github.com/bitprophet/spec/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('da512a30106e324a7ce5a3a6b3b587d95a7f8b2bb584b069b28e5dca3369c5f9b7527154ac354e06c17489e70faaa72aa2350e3d51101547713d1efa97221e66')
+
+build() {
+ cd spec-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd spec-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PATH="$PWD/tmp_install/usr/bin" PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" spec --help
+}
+
+package() {
+ cd spec-$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