summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f977b05bcf815ce19110c70e8205879492b66af (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
# Maintainer: @RubenKelevra <cyrond@gmail.com>

pkgbase='python-sqlmodel'
pkgname=('python-sqlmodel')
_module='sqlmodel'
pkgver='0.0.8'
pkgrel=2
pkgdesc="SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness."
url="https://github.com/tiangolo/sqlmodel"
depends=(
	'python>=3.11'
	'python-pydantic'
	'python-sqlalchemy'
	'python-sqlalchemy2-stubs'
)
makedepends=('python-setuptools')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
b2sums=('d4a849d0bf237c9feb52eed70520b08154d13993c8b996d85fcd33303a965bda40ffc13c0a5ff16710328e44a62e01a4c2728c5c2aceae7a5ef4557a46bd3998')

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py build
}

package() {
    depends+=()
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}