[arch-commits] Commit in python-mohawk/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:56:09 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:56:09
  Author: felixonmars
Revision: 1059555

archrelease: copy trunk to community-staging-any

Added:
  python-mohawk/repos/community-staging-any/
  python-mohawk/repos/community-staging-any/PKGBUILD
    (from rev 1059551, python-mohawk/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-mohawk/repos/community-staging-any/PKGBUILD (from rev 1059551, python-mohawk/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:56:09 UTC (rev 1059555)
@@ -0,0 +1,31 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+_pkgname=mohawk
+pkgname=python-mohawk
+pkgver=1.1.0
+pkgrel=5
+pkgdesc='Python library for Hawk HTTP authorization'
+arch=('any')
+url='https://github.com/kumar303/mohawk'
+license=('BSD')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-nose')
+source=("https://github.com/kumar303/$_pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('995ecf009a92efb18a6503707e0c4d9887fe758102d824ca3e5a5625fee1b8bd')
+
+build() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+  nosetests
+}
+
+package() {
+  cd $_pkgname-$pkgver 
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}



More information about the arch-commits mailing list