2010-05-31 07:25:17 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-iso8601
|
|
|
|
|
#
|
2024-03-24 08:54:27 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-05-31 07:25:17 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2013-10-24 11:07:10 +00:00
|
|
|
|
2018-12-04 13:34:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-09 10:39:54 +00:00
|
|
|
#
|
2010-05-31 07:25:17 +00:00
|
|
|
|
2013-10-24 11:07:10 +00:00
|
|
|
|
2023-04-21 13:18:52 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-01-09 10:39:54 +00:00
|
|
|
Name: python-iso8601
|
2024-03-24 08:54:27 +00:00
|
|
|
Version: 2.1.0
|
2012-01-09 10:39:54 +00:00
|
|
|
Release: 0
|
2019-01-08 18:42:20 +00:00
|
|
|
Summary: Python module to parse ISO 8601 dates
|
2012-01-09 10:39:54 +00:00
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Languages/Python
|
2020-09-28 11:19:38 +00:00
|
|
|
URL: https://github.com/micktwomey/pyiso8601
|
2019-03-29 11:37:04 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/iso8601/iso8601-%{version}.tar.gz
|
2021-12-06 18:13:10 +00:00
|
|
|
BuildRequires: %{python_module hypothesis}
|
2024-03-24 08:54:27 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
2017-03-16 19:59:53 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 2.4.2}
|
2023-01-04 19:48:26 +00:00
|
|
|
BuildRequires: %{python_module pytz}
|
2024-03-24 08:54:27 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-29 11:37:04 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-16 19:59:53 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2012-01-09 10:39:54 +00:00
|
|
|
BuildArch: noarch
|
2017-03-16 19:59:53 +00:00
|
|
|
%python_subpackages
|
2008-09-13 12:40:23 +00:00
|
|
|
|
|
|
|
|
%description
|
2012-01-09 10:39:54 +00:00
|
|
|
This module parses the most common forms of ISO 8601 date strings (e.g.
|
|
|
|
|
2007-01-14T20:34:22+00:00) into datetime objects.
|
2008-09-13 12:40:23 +00:00
|
|
|
|
2012-01-09 10:39:54 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n iso8601-%{version}
|
2008-09-13 12:40:23 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-03-24 08:54:27 +00:00
|
|
|
%pyproject_wheel
|
2013-10-25 17:07:19 +00:00
|
|
|
|
2008-09-13 12:40:23 +00:00
|
|
|
%install
|
2024-03-24 08:54:27 +00:00
|
|
|
%pyproject_install
|
2019-03-29 11:37:04 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-03-16 19:59:53 +00:00
|
|
|
|
|
|
|
|
%check
|
2019-03-29 11:37:04 +00:00
|
|
|
%pytest
|
2008-09-13 12:40:23 +00:00
|
|
|
|
2018-12-04 17:15:26 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2021-12-13 18:45:30 +00:00
|
|
|
%{python_sitelib}/iso8601
|
2024-03-24 08:54:27 +00:00
|
|
|
%{python_sitelib}/iso8601-%{version}.dist-info
|
2008-09-13 12:40:23 +00:00
|
|
|
|
|
|
|
|
%changelog
|