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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:21:20 UTC 2020


    Date: Monday, November 9, 2020 @ 16:21:20
  Author: felixonmars
Revision: 747496

archrelease: copy trunk to community-staging-any

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

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

Copied: python-elementpath/repos/community-staging-any/PKGBUILD (from rev 747495, python-elementpath/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:21:20 UTC (rev 747496)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-elementpath
+pkgver=2.0.4
+pkgrel=2
+pkgdesc="XPath 1.0/2.0 parsers and selectors for ElementTree and lxml"
+url="https://github.com/sissaschool/elementpath"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-lxml' 'python-pytest' 'python-xmlschema')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/elementpath/archive/v$pkgver.tar.gz")
+sha512sums=('2e2613388e3a49853bd9eb0947bdc989760582f3446fd11ba76567abe3b598349c6a41bfc4c30ec0a4a41d2429d335e562c557ee4bb15ee71f83b80f3992b349')
+
+build() {
+  cd elementpath-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd elementpath-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd elementpath-$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