upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / python-doit / trunk / PKGBUILD
bloba984fd312d2b0eb1a2f5323b506dc2497b27dbc1
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=doit
4 pkgname=python-doit
5 pkgver=0.36.0
6 pkgrel=4
7 pkgdesc="A task management and automation tool"
8 arch=(any)
9 url="https://pydoit.org/"
10 license=(MIT)
11 depends=(
12   ipython
13   python
14   python-cloudpickle
15   python-pyinotify
17 makedepends=(
18   python-build
19   python-installer
20   python-setuptools
21   python-wheel
23 checkdepends=(
24   python-doit-py
25   python-pyflakes
26   python-pytest
27   python-toml
29 optdepends=(
30   'python-toml: for TOML support'
31   'python-setuptools: for plugin support'
33 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
34 sha512sums=('d4caa31701755c7f59213dde0f89fd3616c0c01b7f06245cbfd9f1a315d503e62f3556c3b86685cd0ebfcffcc9cae0987ca150f037aa7b3cd960439a1191be42')
35 b2sums=('15558a39ccac031ddf3a429aa585bc6e1d49c2e7572df29979ca66d1025fa5d7a917f6cc5bcfd21f2749e4ed7e7885b0865ec67b6fa32817e1518d47da9ead97')
37 build() {
38   cd $_name-$pkgver
39   python -m build --wheel --no-isolation
42 check() {
43   cd $_name-$pkgver
44   export PYTHONPATH="build/lib:$PYTHONPATH"
45   pytest -vv
48 package() {
49   cd $_name-$pkgver
50   python -m installer --destdir="$pkgdir" dist/*.whl
51   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
52   install -vDm 644 {AUTHORS,CHANGES,CONTRIBUTING.md,README.rst} -t "$pkgdir/usr/share/doc/$pkgname"
53   install -vDm 644 bash_completion_$_name "$pkgdir/usr/share/bash-completion/completions/$_name"
54   install -vDm 644 zsh_completion_$_name "$pkgdir/usr/share/zsh/site-functions/_$_name"