diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-time-machine_3.2.0.bb')
| -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 | " | ||
