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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:22:12 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:22:12
  Author: felixonmars
Revision: 1058125

archrelease: copy trunk to community-staging-any

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

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

Copied: python-elementpath/repos/community-staging-any/PKGBUILD (from rev 1058123, python-elementpath/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:22:12 UTC (rev 1058125)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-elementpath
+pkgver=2.4.0
+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=('887a108b5de24a9be3dd1c577c623cf96939752f7c293d941e3b0bed4281d38a8edccf82fef9be8ee94bda7674f68ed17d3a060f803dcafce96e45961852ca24')
+
+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