math/py-roman_numerals 4.1.0 NetBSD
Manipulate well-formed Roman numerals
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- 0-clause-bsd OR cc0-1.0-universal
- Categories
- math, python
- Package size
- 12.0 KiB, 43.5 KiB installed
Description
A library for manipulating well-formed Roman numerals.
Integers between 1 and 3,999 (inclusive) are supported. Numbers beyond this range will return an OutOfRangeError.
The classical system of roman numerals requires that the same character may not appear more than thrice consecutively, meaning that 'MMMCMXCIX' (3,999) is the largest well-formed Roman numeral. The smallest is 'I' (1), as there is no symbol for zero in Roman numerals.
Both upper- and lower-case formatting of roman numerals are supported, and likewise for parsing strings, although the entire string must be of the same case. Numerals that do not adhere to the classical form are rejected with an InvalidRomanNumeralError.
Install
Binary package:
pkgin install py311-roman_numerals
From pkgsrc:
cd /usr/pkgsrc/math/py-roman_numerals && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 4.1.0 |
| NetBSD 10.1 aarch64 | 4.1.0 |
| SmartOS / illumos x86_64 | 4.1.0 |
| macOS 15 arm64 | 4.1.0 |
Dependencies
Run dependencies 1
Required by 1
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-roman_numerals-4.1.0,py313-roman_numerals-4.1.0,py314-roman_numerals-4.1.0