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

Felix Yan felixonmars at gemini.archlinux.org
Mon Sep 20 21:31:01 UTC 2021


    Date: Monday, September 20, 2021 @ 21:31:01
  Author: felixonmars
Revision: 1019790

archrelease: copy trunk to community-testing-any

Added:
  python-lexicon/repos/community-testing-any/
  python-lexicon/repos/community-testing-any/PKGBUILD
    (from rev 1019789, python-lexicon/trunk/PKGBUILD)

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

Copied: python-lexicon/repos/community-testing-any/PKGBUILD (from rev 1019789, python-lexicon/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-09-20 21:31:01 UTC (rev 1019790)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-lexicon
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Powerful dict subclass(es) with aliasing & attribute access"
+url="https://github.com/bitprophet/lexicon"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-relaxed')
+source=("https://github.com/bitprophet/lexicon/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('bcd6d6a8e2e91b3de9c2ade4fb9eb11ece54eefdd73076fe43261427c2a94c72acb335593d7c098419d9ee95c2b1dceac1b6594ef4a6e73e940fb7af355b291a')
+
+build() {
+  cd lexicon-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd lexicon-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd lexicon-$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