[arch-commits] Commit in python-flatdict/repos (community-any community-any/PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Tue Nov 19 04:17:36 UTC 2019
Date: Tuesday, November 19, 2019 @ 04:17:35
Author: eschwartz
Revision: 530393
archrelease: copy trunk to community-any
Added:
python-flatdict/repos/community-any/
python-flatdict/repos/community-any/PKGBUILD
(from rev 530392, python-flatdict/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-flatdict/repos/community-any/PKGBUILD (from rev 530392, python-flatdict/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2019-11-19 04:17:35 UTC (rev 530393)
@@ -0,0 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=flatdict
+pkgname=python-flatdict
+pkgver=3.4.0
+pkgrel=1
+pkgdesc="Interact with nested dicts as a single level dict with delimited keys."
+arch=('any')
+url="https://flatdict.readthedocs.io"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gmr/flatdict/archive/${pkgver}.tar.gz")
+sha256sums=('d9728a5ef91e9936f9c4218b22c0a6666277b041c4bf32f63ccc7b82ebe64fd0')
+b2sums=('83883b1a19d2de473805c466d603137958e0c2d8ec5007d7f1bbd0e02a2aeb4e7dc673b3fd390140db48b2e2713a6912e15edf934047c5a1acbccad4b0d5ac5a')
+
+build() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ nosetests
+}
+
+package() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list