[arch-commits] Commit in python-pytrie/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 16:53:54 UTC 2020
Date: Monday, November 9, 2020 @ 16:53:53
Author: felixonmars
Revision: 747674
archrelease: copy trunk to community-staging-any
Added:
python-pytrie/repos/community-staging-any/
python-pytrie/repos/community-staging-any/PKGBUILD
(from rev 747673, python-pytrie/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-pytrie/repos/community-staging-any/PKGBUILD (from rev 747673, python-pytrie/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 16:53:53 UTC (rev 747674)
@@ -0,0 +1,33 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Modified from aur/python2-pytrie; original maintainership info:
+# Contributor: dseg
+
+pkgname=python-pytrie
+pkgver=0.4.0
+pkgrel=2
+pkgdesc="A pure Python implementation of the trie data structure."
+url="https://github.com/gsakkis/pytrie/"
+depends=(python python-sortedcontainers)
+makedepends=(python-setuptools)
+# Tests in this package imports tests from CPython :/
+checkdepends=(python-tests)
+license=(BSD)
+arch=(any)
+source=("https://files.pythonhosted.org/packages/source/P/PyTrie/PyTrie-$pkgver.tar.gz")
+sha256sums=('8f4488f402d3465993fb6b6efa09866849ed8cda7903b50647b7d0342b805379')
+
+build() {
+ cd PyTrie-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd PyTrie-$pkgver
+ python -m unittest discover -v ./tests
+}
+
+package() {
+ cd PyTrie-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list