summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7946e2a3d6b4dbcd81a7256cf377640aec782a78 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>

_name=testcontainers
pkgname=python-${_name}
pkgver=4.9.1
pkgrel=1
pkgdesc='Python library for throwaway instances of anything that can run in a Docker container.'
arch=('any')
url='https://github.com/testcontainers/testcontainers-python'
license=('Apache-2.0')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name//-/_}-${pkgver}.tar.gz")
sha256sums=('37fe9a222549ddb788463935965b16f91809e9a8d654f437d6a59eac9b77f76f')
depends=('python>=3.9' 'python-docker' 'python-urllib3' 'python-wrapt' 'python-typing_extensions' 'python-dotenv')
makedepends=('python-setuptools' 'python-wheel')
optdepends=('python-arango: arangodb'
            'python-botto3: aws/localstack'
            'python-httpx: aws/generic/test_module_import'
            'python-azure-storage-blob: azurite'
            'python-clickhouse-driver: clickhouse'
            'python-azure-cosmos: cosmosdb'
            'python-sqlalchemy: db2/mssql/mysql/oracle/oracle-free'
            'python-ibm-db-sa: db2'
            'python-redis: generic/redis'
            'python-google-cloud-pubsub: google'
            'python-google-cloud-datastore: google'
            'python-influxdb: influxdb'
            'python-influxdb-client: influxdb'
            'python-kubernetes: k3s'
            'python-pyyaml: k3s'
            'python-keycloak: keycloak'
            'python-cryptography: mailpit/sftp'
            'python-minio: minio'
            'python-pymongo: mongodb'
            'python-pymssql: mssql'
            'python-pymysql: mysql'
            'python-nats: nats'
            'python-neo4j: neo4j'
            'python-opensearch: opensearch'
            'python-oracledb: oracle/oracle-free'
            'python-qdrant-client: qdrant'
            'python-pika: pika'
            'python-bcrypt: registry'
            'python-selenium: selenium'
            'python-cassandra-driver: scylla'
            'python-weaviate-client: weaviate'
            'python-chromadb-client: chroma'
            'python-trino: trino')

build() {
  cd "${srcdir}"/${_name//-/_}-${pkgver}
  python -m build --wheel --no-isolation
}

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