| Name |
python-autocommand |
| Description |
A library to create a command-line program from a function |
| Version |
2.2.2-9 |
| Package Base |
python-autocommand |
| Homepage |
https://github.com/Lucretiel/autocommand |
| Maintainers |
['Antonio Rojas <arojas@archlinux.org>', 'Felix Yan <felixonmars@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/python-autocommand |
| Sources |
['https://github.com/Lucretiel/autocommand/archive/2.2.2/python-autocommand-2.2.2.tar.gz', 'https://github.com/Lucretiel/autocommand/commit/70ea508ae.patch', 'https://github.com/jaraco/autocommand/commit/ec6f6641.patch'] |
| Dependencies |
['python'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['python-setuptools', 'python-build', 'python-installer', 'python-wheel'] |
| Provides |
[] |
| Builddate |
26-12-2025 15:14:41 |
| Architecture |
any |
| Distro-Version |
|
| Licenses |
['LGPL'] |
| Hash |
17b5712b2fd15f1202c72861998da29c4d25696f22cb4d1a704373fcf7926043 |
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-autocommand
pkgver=2.2.2
pkgrel=9
pkgdesc="A library to create a command-line program from a function"
url="https://github.com/Lucretiel/autocommand"
license=('LGPL')
arch=('any')
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("https://github.com/Lucretiel/autocommand/archive/$pkgver/$pkgname-$pkgver.tar.gz"
https://github.com/jaraco/autocommand/commit/ec6f6641.patch
https://github.com/Lucretiel/autocommand/commit/70ea508ae.patch)
sha512sums=('5ed109db16a0e309ed5107b26db0b70ed8669d73817e82eb5a219650d29f53785aa1f9471b2ac71d21dbffc9f0a13ea0fdf69e63ab534fd84407a1d6741cf5b5'
'2a31e24bafeab219b9ba836c34efa08664ddc323592cbff6cf7853631c982ebac2f263077999cd8c7aa05a2e588f64c8a1bcc4819436b8aba7068b1a26f21019'
'bcd3687f2c935dc0daba07e950a6f8fec06bdf79f94d0c5e083a6314b24e24dbc311276b959beb885d3c5d02cac9f2203263e0dc44b611a1a3f0e64405a4a44f')
prepare() {
cd autocommand-$pkgver
patch -p1 -i ../ec6f6641.patch # Fix build
patch -p1 -i ../70ea508ae.patch # Fix tests with python 3.14
}
build() {
cd autocommand-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd autocommand-$pkgver
PYTHONPATH="$PWD"/build/lib pytest
}
package() {
cd autocommand-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}