Date: Saturday, April 8, 2023 @ 03:21:12
  Author: felixonmars
Revision: 1441604

archrelease: copy trunk to community-staging-any

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

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

Copied: python-guessit/repos/community-staging-any/PKGBUILD (from rev 1441603, 
python-guessit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 03:21:12 UTC (rev 1441604)
@@ -0,0 +1,54 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-guessit
+pkgver=3.7.1
+pkgrel=2
+pkgdesc='A Python module that extracts as much information as possible from a 
video filename'
+arch=('any')
+url='https://github.com/guessit-io/guessit'
+license=('LGPL3')
+depends=(
+  'python'
+  'python-dateutil'
+  'python-babelfish'
+  'python-rebulk'
+)
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+checkdepends=('python-pytest' 'python-pytest-mock' 'python-pyyaml')
+_commit='54acf7852a157db0f4842206c41db3cc6d36823b'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  PYTHONPATH="$PWD:$PYTHONPATH" pytest
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # delete tests from package
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  rm -rf "$pkgdir$site_packages/guessit/test"
+}

Reply via email to