blob: 755af30e23472b9fa4326a229e00202e4c1fb963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_pipname=cattrs
pkgname=python-${_pipname,,}
pkgver=1.10.0
pkgrel=2
pkgdesc='Complex custom class converters for attrs'
arch=(any)
url="https://github.com/Tinche/$_pipname"
license=(MIT)
depends=(python
python-attrs)
makedepends=(python-setuptools)
# PyPi source release currently missing tests
# checkdepends=(python-pytest)
_archive="$_pipname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz")
sha256sums=('211800f725cdecedcbcf4c753bbd22d248312b37d130f06045434acb7d9b34e1')
# prepare() {
# cd "$_archive"
# # Upstream test suite uses addopts to run benchmarks, drop them
# sed -i -e '/^addopts/d' pyproject.toml
# }
build() {
cd "$_archive"
python setup.py build
}
# check() {
# cd "$_archive"
# pytest
# }
package() {
cd "$_archive"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|