blob: 9f8c93f7f58f1aedcd692e8edd7a5fa2a6a1c36b (
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
|
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=python-pydantic-git
pkgver=1.5.1.r41.g70d531ff
pkgrel=1
pkgdesc='Data parsing and validation using Python type hints'
arch=('x86_64')
url='https://pydantic-docs.helpmanual.io'
license=('MIT')
provides=("${pkgname%-git}")
depends=('python')
makedepends=('cython' 'git')
optdepends=('python-ujson: Faster JSON parsing in pure Python'
'python-email-validator: Enable email validation')
checkdepends=('python-pytest-cov' 'mypy')
source=("${pkgname%-git}::git+https://github.com/samuelcolvin/pydantic")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname%-git}"
python setup.py build
}
package() {
cd "${pkgname%-git}"
python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|