[packages/python3-isoduration] - new

qboosh qboosh at pld-linux.org
Tue Jul 15 22:02:40 CEST 2025


commit 27c87ecc80443b257ac54133ea8a5642fefc2d55
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 15 22:04:11 2025 +0200

    - new

 python3-isoduration.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
---
diff --git a/python3-isoduration.spec b/python3-isoduration.spec
new file mode 100644
index 0000000..c9a420d
--- /dev/null
+++ b/python3-isoduration.spec
@@ -0,0 +1,76 @@
+Summary:	Operations with ISO 8601 durations
+Summary(pl.UTF-8):	Operacje na czasach trwania ISO 8601
+Name:		python3-isoduration
+Version:	20.11.0
+Release:	1
+License:	ISC
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/isoduration/
+Source0:	https://files.pythonhosted.org/packages/source/i/isoduration/isoduration-%{version}.tar.gz
+# Source0-md5:	865d2cb9d07342ea66c75cbf8a425cba
+URL:		https://pypi.org/project/isoduration/
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ISO 8601 is most commonly known as a way to exchange datetimes in
+textual format. A lesser known aspect of the standard is the
+representation of durations. They have a shape similar to this:
+"P3Y6M4DT12H30M5S" - this string represents a duration of 3 years, 6
+months, 4 days, 12 hours, 30 minutes, and 5 seconds.
+
+The state of the art of ISO 8601 duration handling in Python is more
+or less limited to what's offered by isodate. What we are trying to
+achieve here is to address the shortcomings of isodate and a few of
+our own annoyances with their interface, such as the lack of
+uniformity in their handling of types, and the use of regular
+expressions for parsing.
+
+%description -l pl.UTF-8
+ISO 8601 jest najpowszechniej znane jako sposób wymiany dat i czasów w
+formacie tekstowym. Mniej znanym aspektem tego standardu jest
+reprezentacja czasów trwania. Mają postać np. "P3Y6M4DT12H30M5S", co
+reprezentuje 3 lata, 6 miesięcy, 4 dni, 12 godzin, 30 minut i 5
+sekund.
+
+Obecna obsługa czasów trwania zgodnych z ISO 8601 w Pythonie jest z
+grubsza ograniczona do tego, co oferuje isodate. Ten moduł próbuje
+wyjść naprzeciw ograniczeniom isodate i kilku dokuczliwościom w jego
+interfejsie, jak na przykład brak jednolitej obsługi typów i używanie
+wyrażeń regularnych do analizy.
+
+%package apidocs
+Summary:	API documentation for Python isoduration module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona isoduration
+Group:		Documentation
+
+%description apidocs
+API documentation for Python isoduration module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona isoduration.
+
+%prep
+%setup -q -n isoduration-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG LICENSE README.md
+%{py3_sitescriptdir}/isoduration
+%{py3_sitescriptdir}/isoduration-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-isoduration.git/commitdiff/27c87ecc80443b257ac54133ea8a5642fefc2d55



More information about the pld-cvs-commit mailing list