summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c350b71506fa39c5e945163e81de86d60b766fe (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: Nathaniel van Diepen <eeems@eeems.codes>
pkgname=python-oras
pkgver=0.2.42
pkgrel=1
pkgdesc="OCI Registry As Storage (ORAS) Python client library"
arch=('any')
url="https://github.com/oras-project/oras-py"
license=('Apache-2.0')
depends=(
  'python-jsonschema'
  'python-requests'
)
optdepends=(
  'python-docker: support for docker config authentication'
  'python-boto3: support for AWS ECR authentication'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-wheel'
)
source=("https://files.pythonhosted.org/packages/source/o/oras/oras-${pkgver}.tar.gz")
sha256sums=('51d17088e5dffdeb585dd930bdccb4329762bef4af3f18600392ebae525a9231')

build() {
    cd "oras-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "oras-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}