1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
6 pkgdesc='A Python module that extracts as much information as possible from a video filename'
8 url='https://github.com/guessit-io/guessit'
23 checkdepends=('python-pytest' 'python-pytest-mock' 'python-pyyaml')
24 _commit='54acf7852a157db0f4842206c41db3cc6d36823b'
25 source=("$pkgname::git+$url#commit=$_commit")
31 git describe --tags | sed 's/^v//'
37 python -m build --wheel --no-isolation
43 PYTHONPATH="$PWD:$PYTHONPATH" pytest
49 python -m installer --destdir="$pkgdir" dist/*.whl
51 # delete tests from package
52 local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
53 rm -rf "$pkgdir$site_packages/guessit/test"