[arch-commits] Commit in python-hypothesmith (repos repos trunk trunk trunk/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Aug 16 19:02:18 UTC 2020


    Date: Sunday, August 16, 2020 @ 19:02:17
  Author: felixonmars
Revision: 681821

addpkg: python-hypothesmith 0.1.3-1

Added:
  python-hypothesmith/repos/
  python-hypothesmith/trunk/
  python-hypothesmith/trunk/PKGBUILD
Deleted:
  python-hypothesmith/repos/
  python-hypothesmith/trunk/

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Added: trunk/PKGBUILD
===================================================================
--- trunk/PKGBUILD	                        (rev 0)
+++ trunk/PKGBUILD	2020-08-16 19:02:17 UTC (rev 681821)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hypothesmith
+pkgver=0.1.3
+_commit=80d28f546af3e3f3c43e8f30a2779dd6e2968de2
+pkgrel=1
+pkgdesc="Hypothesis strategies for generating Python programs, something like CSmith"
+url="https://github.com/Zac-HD/hypothesmith"
+license=('MPL')
+arch=('any')
+depends=('python-hypothesis' 'python-lark-parser' 'python-libcst')
+makedepends=('python-setuptools')
+checkdepends=('python-black' 'python-parso' 'python-pytest-cov')
+source=("https://github.com/Zac-HD/hypothesmith/archive/$_commit/$pkgname-$_commit.tar.gz")
+sha512sums=('750cf35cd7da3a28859ca94fabc4b07902e771abbfb8df19ccc825cea4509596c849acc8eaa7ebd192fd5bf2670b0f51e65abfc350fc81e33f47f6fb25c30d7b')
+
+build() {
+  cd hypothesmith-$_commit
+  python setup.py build
+}
+
+check() {
+  cd hypothesmith-$_commit
+  PYTHONPATH="$PWD/build/lib" pytest
+}
+
+package() {
+  cd hypothesmith-$_commit
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list