devel/py-pendulum 3.2.0_6 FreeBSD
Python package to ease datetimes manipulation
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
9c878207a1- License
- MIT
- Categories
- devel, python
- Package size
- 369.3 KiB, 1663.5 KiB installed
Description
Native datetime instances are enough for basic cases but when you face more complex use-cases they often show limitations and are not so intuitive to work with. Pendulum provides a cleaner and more easy to use API while still relying on the standard library. So it's still datetime but better.
Unlike other datetime libraries for Python, Pendulum is a drop-in replacement for the standard datetime class (it inherits from it), so, basically, you can replace all your datetime instances by DateTime instances in your code (exceptions exist for libraries that check the type of the objects by using the type function like sqlite3 or PyMySQL for instance).
It also removes the notion of naive datetimes: each Pendulum instance is timezone-aware and by default in UTC for ease of use.
Pendulum also improves the standard timedelta class by providing more intuitive methods and properties.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-pendulum | 3.2.0_6 |
| DragonFly | devel/py-pendulum | 3.0.0 |
| MidnightBSD | devel/py-pendulum | 2.1.1_1 |
Install
Binary package:
pkg install py312-pendulum
From the ports tree:
cd /usr/ports/devel/py-pendulum/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-pendulum>0:devel/py-pendulum
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 3.2.0_5 | 3.2.0_6 | 2.1.1_1 | 3.1.0_2 | 3.2.0_6 |
| FreeBSD:14:quarterly | 3.2.0_5 | 3.2.0_5 | n/a | 3.1.0_1 | 3.2.0_5 |
| FreeBSD:15:latest | 3.2.0_6 | 3.2.0_6 | n/a | 3.1.0_2 | 3.1.0_2 |
| FreeBSD:15:quarterly | 3.2.0_5 | 3.2.0_5 | n/a | n/a | n/a |
| FreeBSD:16:latest | 3.2.0_5 | 3.2.0_6 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}maturin>=1.0<2.0: devel/py-maturin
Runtime 3
${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.6: devel/py-python-dateutil${PYTHON_PKGNAMEPREFIX}time-machine>=2.6.0: devel/py-time-machine${PYTHON_PKGNAMEPREFIX}tzdata>=2020.1: devel/py-tzdata
The full lists below include those, and their dependencies in turn.
Build dependencies 23
- archivers/brotli
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/libunistring
- devel/py-build
- devel/py-installer
- devel/py-maturin
- devel/py-packaging
- devel/py-pyproject-hooks
- devel/readline
- dns/libidn2
- dns/libpsl
- ftp/curl
- lang/python312
- lang/python315
- lang/rust
- math/mpdecimal
- print/indexinfo
- security/libssh2
- textproc/expat2
- www/libnghttp2
Run dependencies 11
Configuration
No options to configure.
- USES
- cargo python
- Service scripts
- none
Files
distinfo 24
| File | Size | SHA256 |
|---|---|---|
| pendulum-3.2.0.tar.gz | 86912 | e80feda2d10fa3ff8b1526715f7d33dcb7e08494b3088f2c8a3ac92d4a4331ce |
| rust/crates/autocfg-1.5.0.crate | 18729 | c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8 |
| rust/crates/cc-1.2.55.crate | 93756 | 47b26a0954ae34af09b50f0de26458fa95369a0d478d8236d3f93082b219bd29 |
| rust/crates/find-msvc-tools-0.1.9.crate | 31493 | 5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582 |
| rust/crates/heck-0.5.0.crate | 11517 | 2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea |
| rust/crates/indoc-2.0.7.crate | 17184 | 79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706 |
| rust/crates/libc-0.2.180.crate | 812207 | bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc |
| rust/crates/memoffset-0.9.1.crate | 9032 | 488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a |
| rust/crates/once_cell-1.21.3.crate | 34534 | 42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d |
| rust/crates/portable-atomic-1.13.0.crate | 195086 | f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950 |
| rust/crates/proc-macro2-1.0.106.crate | 59765 | 8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934 |
| rust/crates/pyo3-0.27.2.crate | 1.171342e+06 | ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d |
| rust/crates/pyo3-build-config-0.27.2.crate | 35564 | b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6 |
| rust/crates/pyo3-ffi-0.27.2.crate | 78552 | 1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089 |
| rust/crates/pyo3-macros-0.27.2.crate | 8913 | 0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02 |
| rust/crates/pyo3-macros-backend-0.27.2.crate | 82513 | 03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9 |
| rust/crates/python3-dll-a-0.2.14.crate | 103489 | d381ef313ae70b4da5f95f8a4de773c6aa5cd28f73adec4b4a31df70b66780d8 |
| rust/crates/quote-1.0.44.crate | 31629 | 21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4 |
| rust/crates/rustversion-1.0.22.crate | 21096 | b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d |
| rust/crates/shlex-1.3.0.crate | 18713 | 0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64 |
Master sites 1
- PYPI