Date: Saturday, October 31, 2020 @ 13:23:52 Author: archange Revision: 737650
Initial addition of python-pytest-mpi to [community] Added: python-pytest-mpi/ python-pytest-mpi/repos/ python-pytest-mpi/trunk/ python-pytest-mpi/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: python-pytest-mpi/trunk/PKGBUILD =================================================================== --- python-pytest-mpi/trunk/PKGBUILD (rev 0) +++ python-pytest-mpi/trunk/PKGBUILD 2020-10-31 13:23:52 UTC (rev 737650) @@ -0,0 +1,40 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> + +_pkg=pytest-mpi +pkgname=python-${_pkg} +pkgver=0.4 +pkgrel=1 +pkgdesc="pytest plugin for working with MPI" +arch=(any) +url="https://pytest-mpi.readthedocs.io/" +license=(BSD) +depends=(python-pytest) +makedepends=(python-setuptools) +checkdepends=(openmpi python-mpi4py python-sybil) +source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz) +# pytest-mpi-pytest-6.patch::https://patch-diff.githubusercontent.com/raw/aragilar/pytest-mpi/pull/12.patch) +#source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=('8879c82a9e837bdb49a1675858a13ef22e61e379c983fd37491f876c299b8b31') +# '0803b5c675206dd36056bcd91dfbd234f4147afe76cf6dd124e36ec358c49557') + +#prepare() { +# cd ${_pkg}-${pkgver} +# patch -Np1 -i ../pytest-mpi-pytest-6.patch +#} + +build() { + cd ${_pkg}-${pkgver} + python setup.py build +} + +# Errors everywhere, similar to https://github.com/browsertron/pytest-parallel/issues/62 +#check() { +# cd ${_pkg}-${pkgver} +# pytest tests -p pytester --runpytest=subprocess +#} + +package() { + cd ${_pkg}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1 + install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname} +}