# Maintainer: Kaizhao Zhang _name=hatch _sha256sum=b4b65753fcd8319ebddd51c0e1ef148d09592cdc38923d032f8f58ffc1658fd7 pkgname=python-hatch pkgver=0.23.0 pkgrel=2 pkgdesc="A modern project, package, and virtual env manager" arch=('any') url="https://github.com/ofek/hatch" license=('MIT' 'APACHE') depends=( 'python>=3.5' 'python-appdirs' 'python-atomicwrites' 'python-click' 'python-colorama' 'python-coverage' 'python-pexpect' 'python-pip>=9.0.1' 'python-pytest' 'python-semver>=2.7.8' 'python-setuptools>=36.0.0' 'python-sortedcontainers>=1.5.7' 'python-toml>=0.9.3' 'twine>=1.9.1' 'python-userpath>=1.3.0' 'python-virtualenv' 'python-wheel>=0.27.0' ) provides=('python-hatch') options=(!emptydirs) source=( "https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz" 'hatch_complete.sh' 'hatch_complete.zsh' ) sha256sums=( "${_sha256sum}" 'b87254c621719188907a2062b0aa3c4eb078088872d1de7d53d6a6d61a679c44' 'a43679d72ebb7b5c029192519597eff835586d0b6ed9d1e3dfc93270b8720e71' ) build() { cd "${srcdir}/${_name}-${pkgver}" python setup.py build } package() { cd "${srcdir}/${_name}-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst" install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" install -Dm644 LICENSE-APACHE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE" cd "${srcdir}" # Tab completions. # via https://github.com/ofek/hatch/issues/57 and https://click.palletsprojects.com/en/7.x/bashcomplete/ # Tab completion for Bash. # Generated by `_HATCH_COMPLETE=source hatch > hatch_complete.sh` install -Dm644 hatch_complete.sh "${pkgdir}/usr/share/bash-completion/completions/${_name}" # Tab completion for Zsh. # Generated by `_HATCH_COMPLETE=source_zsh hatch > hatch_complete.zsh` install -Dm644 hatch_complete.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_name}" }