[arch-commits] Commit in (4 files)
Eli Schwartz
eschwartz at archlinux.org
Tue Nov 19 05:33:03 UTC 2019
Date: Tuesday, November 19, 2019 @ 05:33:03
Author: eschwartz
Revision: 530399
addpkg: python-clikit 0.4.0-1
needed to package python-poetry
Added:
python-clikit/
python-clikit/repos/
python-clikit/trunk/
python-clikit/trunk/PKGBUILD
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Added: python-clikit/trunk/PKGBUILD
===================================================================
--- python-clikit/trunk/PKGBUILD (rev 0)
+++ python-clikit/trunk/PKGBUILD 2019-11-19 05:33:03 UTC (rev 530399)
@@ -0,0 +1,43 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=clikit
+pkgname=python-clikit
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="clikit allows you to create beautiful and testable command-line interfaces"
+arch=('any')
+url="https://github.com/sdispater/${_pkgname}"
+license=('MIT')
+depends=('python-pastel' 'python-pylev')
+makedepends=('python-dephell')
+checkdepends=('python-pytest-mock')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('1a245e68ff98f067324cc292aaad7cb3f09a229bfa9d7dff6285918dc0c628b1')
+b2sums=('20c49e403a88bfdc5a02a17bdfed38dcdeb965c29a88cc1cd91263dc62f111f82aa8c5e6a2c1c8d7b26fd027686cb7450cd5b9e1a7018a641ccc4d1ebdcbf655')
+
+prepare() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ # poetry-generated setup.py are fatally broken, see:
+ # https://github.com/sdispater/poetry/issues/866
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build(){
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ PYTHONPATH=$PWD/src python -m pytest
+}
+
+package() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list