# Contributor: Daiki Maekawa # Maintainer: Daiki Maekawa pkgname=py3-frozendict _pkgname=frozendict pkgver=2.1.1 pkgrel=0 pkgdesc="immutable dictionary" url="https://github.com/Marco-Sulla/python-frozendict" arch="all" license="MIT" makedepends="py3-setuptools" checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-frozendict" # Backwards compatibility provides="py-frozendict=$pkgver-r$pkgrel" # Backwards compatibility prepare() { rm test/c_only.py \ test/test_frozendict_c.py \ test/test_frozendict_c_subclass.py \ test/test_coold.py \ test/test_coold_subclass.py } build() { python3 setup.py build } check() { PYTHONPATH=$(echo "$PWD"/build/lib*) pytest -v } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums=" 114a5b994b479949be552012c393f210b9cd4f41c9096d99465cdd6437f1d68d8eb777cbf313703f44a428497d53e74e85985b260afa2cb2483ce2b917a79504 frozendict-2.1.1.tar.gz "