Date: Friday, September 2, 2022 @ 16:36:25 Author: felixonmars Revision: 1290927
addpkg: python-poetry-plugin-export 1.0.6-1 Added: python-poetry-plugin-export/ python-poetry-plugin-export/repos/ python-poetry-plugin-export/trunk/ python-poetry-plugin-export/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: python-poetry-plugin-export/trunk/PKGBUILD =================================================================== --- python-poetry-plugin-export/trunk/PKGBUILD (rev 0) +++ python-poetry-plugin-export/trunk/PKGBUILD 2022-09-02 16:36:25 UTC (rev 1290927) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <[email protected]> + +_pkgname=poetry-plugin-export +pkgname=python-poetry-plugin-export +pkgver=1.0.6 +pkgrel=1 +pkgdesc="Poetry plugin to export the dependencies to various formats " +url="https://github.com/sdispater/poetry-plugin-export" +license=('MIT') +arch=('any') +depends=('python-poetry') +makedepends=('python-build' 'python-installer') +checkdepends=('python-pytest-mock') +source=("https://github.com/python-poetry/poetry-plugin-export/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('61afdbff0dd0e7ded56b1b4c428cd0b4dd07c66e8bfa236a4ab178f08a12e6e13600a7274b7802f6cd339ccad1c40846a700dc42349cfadf180123734f333a03') + +build() { + cd poetry-plugin-export-$pkgver + python -m build -wn +} + +check() { + cd poetry-plugin-export-$pkgver + python -m installer -d tmp_install dist/*.whl + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" pytest +} + +package() { + cd poetry-plugin-export-$pkgver + python -m installer -d "$pkgdir" dist/*.whl + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE +}
