meta-openembedded/meta-python/recipes-devtools/python/python3-freezegun_1.4.0.bb
alperak 39e13efc08
python3-freezegun: add recipe and add ptest
FreezeGun is a library that allows your Python tests to travel through time by mocking the datetime module.

* Tested on qemux86-64 and qemuarm64
* Add ptest into PTESTS_FAST_META_PYTHON

Ptest result:
=============
qemuarm64:

Testsuite summary
TOTAL: 127
PASS: 121
SKIP: 6
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 20
END: /usr/lib/python3-freezegun/ptest
2024-03-05T06:53
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemux86-64:

Testsuite summary
TOTAL: 127
PASS: 121
SKIP: 6
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 21
END: /usr/lib/python3-freezegun/ptest
2024-03-05T06:57
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-05 11:02:04 -08:00

30 lines
796 B
BlitzBasic

SUMMARY = "FreezeGun is a library that allows your Python tests to travel through time by mocking the datetime module."
HOMEPAGE = "https://github.com/spulec/freezegun"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=acf1d209bb6eddae4cbe6ffd6a0144fe"
SRC_URI[sha256sum] = "10939b0ba0ff5adaecf3b06a5c2f73071d9678e507c5eaedb23c761d56ac774b"
inherit pypi python_setuptools_build_meta ptest
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-sqlite3 \
python3-unittest-automake-output \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS:${PN} = "\
python3-asyncio \
python3-dateutil \
python3-unittest \
"