blob: be9530e2948b7e043df9e9ab834757a6b2dbec26 (
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: Butui Hu <hot123tea123@gmail.com>
_pkgname=einops
pkgname=python-einops
pkgver=0.9.0dev
pkgrel=2
pkgdesc='Deep learning operations reinvented (for pytorch, tensorflow, jax and others)'
arch=('any')
url='https://github.com/arogozhnikov/einops'
license=('MIT')
depends=(
python
)
makedepends=(
python-build
python-hatchling
python-installer
python-wheel
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/arogozhnikov/einops/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('fcf995f91ab47e2bddfbe3b71cdc5f4e8bfa514ffedec09285251892947018a8bf7322259776052b0f8648d43b9c1edb0632512e9979a46c38bd4251f7f4c4e8')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|