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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 21:13:00 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:13:00
  Author: felixonmars
Revision: 1058863

archrelease: copy trunk to community-staging-any

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

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

Copied: python-bidict/repos/community-staging-any/PKGBUILD (from rev 1058861, python-bidict/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 21:13:00 UTC (rev 1058863)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Omar Pakker <archlinux at opakker.nl>
+
+pkgname=python-bidict
+_name=${pkgname#python-}
+pkgver=0.21.3
+pkgrel=2
+pkgdesc='Bidirectional mapping library for Python'
+url='https://bidict.readthedocs.org/'
+arch=('any')
+license=('MPL2')
+depends=('python')
+makedepends=('python-setuptools' 'python-pip' 'python-wheel')
+checkdepends=('python-pytest' 'python-sphinx' 'python-sphinx-autodoc-typehints' 'python-pytest-benchmark'
+	          'python-hypothesis' 'python-py-cpuinfo')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz)
+sha256sums=('d50bd81fae75e34198ffc94979a0eb0939ff9adb3ef32bcc93a913d8b3e3ed1d')
+b2sums=('d6fe581d3114e03fda76a0dcc47a65a5d0a840f17e5eb492341a6498f79b0f57f1d342220016001da4342baecdc1e5b575268d73a21fc01a0520fc11f31ff5ab')
+
+build() {
+  cd "bidict-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "bidict-${pkgver}"
+  python setup.py test
+}
+
+package() {
+  cd "bidict-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list