summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-time-machine_3.2.0.bb
diff options
context:
space:
mode:
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.bb28
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 @@
1SUMMARY = "Travel through time in your tests."
2HOMEPAGE = "https://github.com/adamchainz/time-machine"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=fb9b93a440d3ef2fb6eeebfa59384c53"
5
6SRCREV = "1b7ac45defb26c72076dc202aba46967c8c28fa9"
7PYPI_SRC_URI = "git://github.com/adamchainz/time-machine;protocol=https;branch=main;tag=${PV};destsuffix=time_machine-${PV}"
8
9inherit pypi python_setuptools_build_meta ptest-python-pytest
10
11PYPI_PACKAGE = "time_machine"
12UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
13
14RDEPENDS:${PN} += "\
15 python3-tzdata \
16 python3-unittest \
17 python3-zoneinfo \
18 "
19do_install_ptest:append() {
20 install -d ${D}${PTEST_PATH}/tests
21 cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
22}
23
24RDEPENDS:${PN}-ptest += "\
25 python3-dateutil \
26 python3-freezegun \
27 python3-tokenize-rt \
28"