summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5c178a280bf990308a88b65a89a5b1444fc3fa1 (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: pjvm <pjvm742@disroot.org>
# Contributor: Ghassan Alduraibi <git@ghassan.dev>

pkgname=python-gymnasium
_name=${pkgname#python-}
pkgver=0.29.1
_pkgver=v${pkgver}
pkgrel=3
pkgdesc="A standard API for single-agent reinforcement learning environments, with popular reference environments and related utilities (formerly Gym)"
arch=('any')
url="https://gymnasium.farama.org/"
license=('MIT')
depends=('python-numpy' 'python-cloudpickle' 'python-importlib-metadata' 'python-typing_extensions' 'python-farama-notifications')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
optdepends=('python-pygame: environment rendering, required for many provided environments'
            'python-pybox2d: required for box2d environments'
            'box2d: required for box2d environments'
	    'python-mujoco: required for mujoco environments'
	    'python-imageio: required for mujoco environments')

source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz" "LICENSE-${pkgver}::https://raw.githubusercontent.com/Farama-Foundation/Gymnasium/${_pkgver}/LICENSE")
sha256sums=('1a532752efcb7590478b1cc7aa04f608eb7a2fdad5570cd217b66b6a35274bb1' # from PyPI
            '7dacaa9772e856aee6943b32ef663d3634d91d72ec7bbc74d136943673f91e18')

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

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 ${srcdir}/LICENSE-${pkgver} "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}