archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-plumbum / trunk / PKGBUILD
blobcbe2fde9178dd499cea2625fd00bb6c2a8daed91
1 # Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
3 pkgname=python-plumbum
4 _name=plumbum
5 pkgver=1.8.1
6 pkgrel=2
7 pkgdesc='A small yet feature-rich Python library for shell script-like programs, and more'
8 url='https://github.com/tomerfiliba/plumbum'
9 arch=('any')
10 license=('MIT')
11 depends=('python')
12 makedepends=('python-build' 'python-hatch-vcs' 'python-hatchling' 'python-installer')
13 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
14 sha512sums=('80031c07be3b68767556bba8246e964c51b16336d6105ad3d51d62f7c39287af6f928be713171c8c22cdd37145a0e7c3bd65d44f14bf8b1bc62483b648f3acff')
15 b2sums=('91288c5f793b9e3e7d1e1d3724f5cc16989d604b1236438fc71283fab5aa59bb34f1742fe2d79b7a9220e09a3622f5145769497765f3f9213dc70960af478fa0')
17 build() {
18   cd "${_name}-${pkgver}"
19   python -m build --wheel --no-isolation
22 check() {
23   cd "${_name}-${pkgver}"
24   PYTHONPATH=. python -c 'import plumbum'
27 package() {
28   cd "${_name}-${pkgver}"
29   python -m installer --destdir="${pkgdir}" dist/*.whl
30   install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
33 # vim:set ts=2 sw=2 et: