[arch-commits] Commit in (4 files)

Eli Schwartz eschwartz at archlinux.org
Tue Nov 19 04:17:18 UTC 2019


    Date: Tuesday, November 19, 2019 @ 04:17:17
  Author: eschwartz
Revision: 530392

addpkg: python-flatdict 3.4.0-1

new dependency for python-dephell

Added:
  python-flatdict/
  python-flatdict/repos/
  python-flatdict/trunk/
  python-flatdict/trunk/PKGBUILD

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

Added: python-flatdict/trunk/PKGBUILD
===================================================================
--- python-flatdict/trunk/PKGBUILD	                        (rev 0)
+++ python-flatdict/trunk/PKGBUILD	2019-11-19 04:17:17 UTC (rev 530392)
@@ -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