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

Felix Yan felixonmars at archlinux.org
Tue Feb 4 18:09:25 UTC 2020


    Date: Tuesday, February 4, 2020 @ 18:09:24
  Author: felixonmars
Revision: 562203

archrelease: copy trunk to community-testing-any

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

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

Copied: python-elementpath/repos/community-testing-any/PKGBUILD (from rev 562202, python-elementpath/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-02-04 18:09:24 UTC (rev 562203)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-elementpath
+pkgver=1.4.1
+pkgrel=1
+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-pytest-runner' 'python-xmlschema')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/elementpath/archive/v$pkgver.tar.gz")
+sha512sums=('6fcd13fb582b470a57ca759eae363dc63da5c2a14bf4fedc6b34e26e76fb81f7ad94d23a0893e7b5ee717d654caf66486abe69080dc825025e9dc7ba8835c88d')
+
+build() {
+  cd elementpath-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd elementpath-$pkgver
+  python setup.py pytest || warning "missing it_IT locale for testing"
+}
+
+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