diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2026-02-03 11:13:54 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-06 10:06:19 -0800 |
| commit | c6a7350f7c4e395cc43b172324379bd493a4a60f (patch) | |
| tree | a0d8f6abd6722c9aa0252dff3b88c6b741a51375 /meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb | |
| parent | 8dd259ff4dfa1da1203a7b7f55c49492dd45f267 (diff) | |
| download | meta-openembedded-c6a7350f7c4e395cc43b172324379bd493a4a60f.tar.gz | |
python3-pendulum: add at v3.2.0
Python datetimes made easy.
* Add patch to not strip .so
* Enable ptests
* Use git fetcher so we have tests/
Testsuite summary
TOTAL: 1835
PASS: 1832
SKIP: 3
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 102
Dependency for python3-orjson 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/python/python3-pendulum_3.2.0.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb b/meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb new file mode 100644 index 0000000000..a2dc7e7d9e --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pendulum_3.2.0.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | SUMMARY = "Python datetimes made easy" | ||
| 2 | DESCRIPTION = "Pendulum is a Python package to ease datetimes manipulation. \ | ||
| 3 | It provides classes that are drop-in replacements for the native ones (they \ | ||
| 4 | inherit from them). \ | ||
| 5 | Special care has been taken to ensure timezones are handled correctly, and \ | ||
| 6 | are based on the underlying tzinfo implementation. For example, all \ | ||
| 7 | comparisons are done in UTC or in the timezone of the datetime being used. \ | ||
| 8 | The default timezone, except when using the now(), method will always be UTC. \ | ||
| 9 | " | ||
| 10 | HOMEPAGE = "https://pendulum.eustace.io" | ||
| 11 | LICENSE = "MIT" | ||
| 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=869e1c364438f234f09673c4039ed114" | ||
| 13 | |||
| 14 | DEPENDS = "python3-maturin-native" | ||
| 15 | |||
| 16 | SRCREV = "aea611d7a1c15ed0da56505c3f370fe4446ba733" | ||
| 17 | PYPI_SRC_URI = "git://github.com/python-pendulum/pendulum;protocol=https;branch=master;tag=${PV};destsuffix=pendulum-${PV}" | ||
| 18 | |||
| 19 | SRC_URI += "file://0001-rust-Cargo.toml-inhibit-strip.patch" | ||
| 20 | |||
| 21 | require ${BPN}-crates.inc | ||
| 22 | |||
| 23 | inherit pypi python_maturin cargo-update-recipe-crates ptest-python-pytest | ||
| 24 | |||
| 25 | do_install_ptest:append() { | ||
| 26 | install -d ${D}${PTEST_PATH}/tests | ||
| 27 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 28 | } | ||
| 29 | |||
| 30 | RDEPENDS:${PN} += "python3-dateutil python3-tzdata" | ||
| 31 | |||
| 32 | RDEPENDS:${PN}-ptest += "\ | ||
| 33 | python3-dateutil-zoneinfo \ | ||
| 34 | python3-time-machine \ | ||
| 35 | " | ||
