- Fix license
- Format with spec-cleaner - Remove py2 only parts OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dateparser?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
39e0295c27
commit
d1ebb4dad2
@@ -21,7 +21,7 @@ Name: python-dateparser
|
||||
Version: 0.7.1
|
||||
Release: 0
|
||||
Summary: Date parsing library designed to parse dates from HTML pages
|
||||
License: BSD (FIXME:No SPDX)
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/scrapinghub/dateparser
|
||||
Source: https://files.pythonhosted.org/packages/source/d/dateparser/dateparser-%{version}.tar.gz
|
||||
@@ -32,21 +32,23 @@ Requires: python-python-dateutil
|
||||
Requires: python-pytz
|
||||
Requires: python-regex
|
||||
Requires: python-tzlocal
|
||||
Recommends: convertdate
|
||||
Recommends: python-jdatetime
|
||||
Recommends: python-ruamel.yaml
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module convertdate}
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module jdatetime}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module parameterized}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module regex}
|
||||
BuildRequires: %{python_module ruamel.yaml}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module tzlocal}
|
||||
BuildRequires: %{python_module ruamel.yaml}
|
||||
BuildRequires: %{python_module jdatetime}
|
||||
BuildRequires: %{python_module umalqurra}
|
||||
BuildRequires: %{python_module convertdate}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -55,6 +57,9 @@ Date parsing library designed to parse dates from HTML pages
|
||||
|
||||
%prep
|
||||
%setup -q -n dateparser-%{version}
|
||||
# not py3 compatible and weird license of the imported module
|
||||
rm tests/test_hijri.py
|
||||
rm dateparser/calendars/hijri*
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user