Date: Wednesday, April 5, 2023 @ 19:06:04
Author: felixonmars
Revision: 1437918
archrelease: copy trunk to community-staging-any
Added:
python-mamba/repos/community-staging-any/
python-mamba/repos/community-staging-any/PKGBUILD
(from rev 1437917, python-mamba/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-mamba/repos/community-staging-any/PKGBUILD (from rev 1437917,
python-mamba/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 19:06:04 UTC (rev 1437918)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-mamba
+pkgver=0.11.2
+pkgrel=5
+pkgdesc="The definitive testing tool for Python. Born under the banner of
Behavior Driven Development."
+arch=('any')
+license=('MIT')
+url="https://nestorsalceda.github.io/mamba"
+depends=('python-coverage' 'python-clint')
+makedepends=('python-setuptools')
+checkdepends=('python-doublex-expects')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/nestorsalceda/mamba/archive/v$pkgver.tar.gz")
+sha512sums=('8ca6207c9df7b3388db8ecabd13456e54d8811c24f695ccc638c90bb2c975268f9e803533808f9b099651ee4744376fad3b58eaa84a6c97605631368f979915c')
+
+build() {
+ cd mamba-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd mamba-$pkgver
+ # Hack entry points by installing it
+
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ (
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ export PATH="$PWD/tmp_install/usr/bin:$PATH"
PYTHONPATH="$PWD/tmp_install/${site-packages}:$PYTHONPATH"
+ mamba --enable-coverage
+ )
+}
+
+package() {
+ cd mamba-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
+}