xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/python/python3-hypothesis_6.39.5.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "A library for property-based testing"
2*4882a593SmuzhiyunHOMEPAGE = "https://github.com/HypothesisWorks/hypothesis/tree/master/hypothesis-python"
3*4882a593SmuzhiyunLICENSE = "MPL-2.0"
4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4ee62c16ebd0f4f99d906f36b7de8c3c"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunPYPI_PACKAGE = "hypothesis"
7*4882a593Smuzhiyun
8*4882a593Smuzhiyuninherit pypi setuptools3 ptest
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSRC_URI += " \
11*4882a593Smuzhiyun    file://run-ptest \
12*4882a593Smuzhiyun    file://test_binary_search.py \
13*4882a593Smuzhiyun    file://test_rle.py \
14*4882a593Smuzhiyun    "
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunSRC_URI[sha256sum] = "2972edc54c90c70049facfc31db19f1997f9c5e89d2a05f6eeea1107600350f0"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunRDEPENDS:${PN} += " \
19*4882a593Smuzhiyun    python3-attrs \
20*4882a593Smuzhiyun    python3-compression \
21*4882a593Smuzhiyun    python3-core \
22*4882a593Smuzhiyun    python3-json \
23*4882a593Smuzhiyun    python3-sortedcontainers \
24*4882a593Smuzhiyun    python3-statistics \
25*4882a593Smuzhiyun    python3-unittest \
26*4882a593Smuzhiyun    "
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunRDEPENDS:${PN}-ptest += " \
29*4882a593Smuzhiyun    ${PYTHON_PN}-pytest \
30*4882a593Smuzhiyun    "
31*4882a593Smuzhiyun
32*4882a593Smuzhiyundo_install_ptest() {
33*4882a593Smuzhiyun    install -d ${D}${PTEST_PATH}/examples
34*4882a593Smuzhiyun    install -m 0755 ${WORKDIR}/test_binary_search.py ${D}${PTEST_PATH}/examples/
35*4882a593Smuzhiyun    install -m 0755 ${WORKDIR}/test_rle.py ${D}${PTEST_PATH}/examples/
36*4882a593Smuzhiyun}
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
39