blob: a648f7e8eeab2c7f93ab241937d4fd63ec495973 (
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
|
# Maintainer: Marcus Hoffmann <bubu@bubu1.eu>
_pkgname=mypy-zope
pkgname=python-mypy-zope
pkgver=0.2.10
pkgrel=1
pkgdesc="Plugin for mypy to support zope.interface"
arch=('any')
url="https://pypi.org/project/mypy-zope/"
license=('MIT')
depends=('python' 'python-setuptools' 'mypy' 'python-zope-interface' 'python-zope-schema')
checkdepends=('python-pytest' 'python-lxml')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('93792b3f418a1857f1a20977f7257bc37962614d8b3f5757e2b3d8dc11a753fa')
# Tests only work with installed package:
# https://github.com/Shoobx/mypy-zope/issues/25
#check() {
# cd $srcdir/${_pkgname}-${pkgver}
# PYTHONPATH=./build/lib pytest
# # No idea how to get that to work...
# #mypy ./src/mypy_zope --strict
#}
build() {
cd $srcdir/${_pkgname}-${pkgver}
python setup.py build
}
package() {
cd "$srcdir/${_pkgname}-${pkgver}"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python3 setup.py install --root "${pkgdir}" --optimize=1 --skip-build
}
|