From 21343f49426dcd1b6c0b600c8f1a20279b046af8 Mon Sep 17 00:00:00 2001 From: Duncan Bellamy Date: Thu, 4 Jan 2024 00:01:59 +0000 Subject: [PATCH] contrib/python-hypothesis: new package (6.92.2) --- contrib/python-hypothesis/template.py | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 contrib/python-hypothesis/template.py diff --git a/contrib/python-hypothesis/template.py b/contrib/python-hypothesis/template.py new file mode 100644 index 00000000000..ce460dd5543 --- /dev/null +++ b/contrib/python-hypothesis/template.py @@ -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 " +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"