diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2026-02-03 11:13:53 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-06 10:06:19 -0800 |
| commit | 8dd259ff4dfa1da1203a7b7f55c49492dd45f267 (patch) | |
| tree | 53e2631a40db8cb38e227033d6dae00b02598b4c /meta-python/recipes-devtools | |
| parent | 73dbdc65fcd40fdaa8bd1627d252f794e6b1e8d9 (diff) | |
| download | meta-openembedded-8dd259ff4dfa1da1203a7b7f55c49492dd45f267.tar.gz | |
python3-time-machine: add at v3.2.0
Travel through time in your tests.
https://time-machine.readthedocs.io/en/latest/
Dependency for python3-pendulum ptests.
Based on the recipe in meta-homeassistant.
Enable ptests.
Use git fetcher so that we have tests/ for ptest.
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-time-machine_3.2.0.bb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-time-machine_3.2.0.bb b/meta-python/recipes-devtools/python/python3-time-machine_3.2.0.bb new file mode 100644 index 0000000000..8e2fa51bb4 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-time-machine_3.2.0.bb | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | SUMMARY = "Travel through time in your tests." | ||
| 2 | HOMEPAGE = "https://github.com/adamchainz/time-machine" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fb9b93a440d3ef2fb6eeebfa59384c53" | ||
| 5 | |||
| 6 | SRCREV = "1b7ac45defb26c72076dc202aba46967c8c28fa9" | ||
| 7 | PYPI_SRC_URI = "git://github.com/adamchainz/time-machine;protocol=https;branch=main;tag=${PV};destsuffix=time_machine-${PV}" | ||
| 8 | |||
| 9 | inherit pypi python_setuptools_build_meta ptest-python-pytest | ||
| 10 | |||
| 11 | PYPI_PACKAGE = "time_machine" | ||
| 12 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" | ||
| 13 | |||
| 14 | RDEPENDS:${PN} += "\ | ||
| 15 | python3-tzdata \ | ||
| 16 | python3-unittest \ | ||
| 17 | python3-zoneinfo \ | ||
| 18 | " | ||
| 19 | do_install_ptest:append() { | ||
| 20 | install -d ${D}${PTEST_PATH}/tests | ||
| 21 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 22 | } | ||
| 23 | |||
| 24 | RDEPENDS:${PN}-ptest += "\ | ||
| 25 | python3-dateutil \ | ||
| 26 | python3-freezegun \ | ||
| 27 | python3-tokenize-rt \ | ||
| 28 | " | ||
