[arch-commits] Commit in python-hypothesmith/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 14:55:38 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:55:38
Author: felixonmars
Revision: 1059540
archrelease: copy trunk to community-staging-any
Added:
python-hypothesmith/repos/community-staging-any/
python-hypothesmith/repos/community-staging-any/PKGBUILD
(from rev 1059539, python-hypothesmith/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: python-hypothesmith/repos/community-staging-any/PKGBUILD (from rev 1059539, python-hypothesmith/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:55:38 UTC (rev 1059540)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hypothesmith
+pkgver=0.1.9
+pkgrel=2
+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://pypi.io/packages/source/h/hypothesmith/hypothesmith-$pkgver.tar.gz")
+sha512sums=('ed2838fdb25dbb0ae51665c8796a559d03d8da2a4ae6f85d3e1b0eb9cbe775a6b3b21b1b963741c778532daeccdeabd74cbea209713d9ab846ebab2ba3dfe3d4')
+
+build() {
+ cd hypothesmith-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd hypothesmith-$pkgver
+ PYTHONPATH="$PWD/build/lib" pytest
+}
+
+package() {
+ cd hypothesmith-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list