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

David Runge dvzrv at archlinux.org
Tue May 18 08:46:10 UTC 2021


    Date: Tuesday, May 18, 2021 @ 08:46:10
  Author: dvzrv
Revision: 936236

archrelease: copy trunk to community-staging-any

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

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

Copied: python-imdbpy/repos/community-staging-any/PKGBUILD (from rev 936235, python-imdbpy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-05-18 08:46:10 UTC (rev 936236)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=IMDbPY
+pkgname=python-imdbpy
+pkgver=2021.4.18
+pkgrel=2
+pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
+url="https://imdbpy.sourceforge.io/"
+arch=('any')
+license=('GPL2')
+# using python-sqlalchemy < 1.4 for good measure: https://github.com/alberanid/imdbpy/issues/320
+depends=('python-lxml' 'python-sqlalchemy1.3')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('512e459f18018b0439ba7162a85b9492d9bb58e7d360258c228e7437ac971c6957b22017561437c7922dbe3251a9150e99d9590b099e72db8034b0cfe13841fa')
+b2sums=('6bf709a132497ac8acaefadba8c133abb3fc0993e59c4fefe62cf77a515b50bad5ff5c46acdc1d1e8f4e903c21c8bef6f59c795822022274ccb946c91113be95')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py build
+}
+
+# # flaky tests are flaky: https://github.com/alberanid/imdbpy/issues/240
+# check() {
+#   cd "${pkgname}-${pkgver}"
+#   export PYTHONPATH="build:${PYTHONPATH}"
+#   pytest -v
+# }
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}/"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list