Skip to content

Commit

Permalink
contrib/python-hypothesis: new package (6.92.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
a16bitsysop committed Jan 4, 2024
1 parent df6aee7 commit 21343f4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions contrib/python-hypothesis/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pkgname = "python-hypothesis"
pkgver = "6.92.2"
pkgrel = 0
build_style = "python_pep517"
hostmakedepends = [
"python-build",
"python-installer",
"python-setuptools",
"python-wheel",
]
checkdepends = [
"python-attrs",
"python-pexpect",
"python-pytest",
"python-pytest-xdist",
"python-sortedcontainers",
]
depends = ["python-attrs", "python-sortedcontainers"]
pkgdesc = "Easy to use library for property-based testing"
maintainer = "Duncan Bellamy <[email protected]>"
license = "MPL-2.0"
url = "https://hypothesis.works/index.html"
source = f"https://github.com/HypothesisWorks/hypothesis/archive/refs/tags/hypothesis-python-{pkgver}.zip"
sha256 = "899688a4f7dcca9a6d32ce486a7765db9eef805ee4d84d3333fa6e06276e67b8"


def init_build(self):
self.make_build_target = "hypothesis-python"


def init_check(self):
import sys
self.env["PYTHONPATH"] = "hypothesis-python/src"
self.env["PATH"] = "/usr/bin:" + "f{self.cwd}/testdir/usr/bin"
self.do("sh", "-c" ,"python3 -m installer --destdir=test_dir hypothesis-python/dist/*whl")


def init_install(self):
self.make_install_target = "hypothesis-python/dist/*whl"

0 comments on commit 21343f4

Please sign in to comment.