File python3-pyPEG2.spec of Package python3-pyPEG2

#
# spec file for package python3-pyPEG2
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/


%define _name   pyPEG2
Name:           python3-pyPEG2
Version:        2.15.2
Release:        0
License:        GPL-2.0+
Summary:        PEG Parser-Interpreter framework for Python
Url:            https://fdik.org/pyPEG2
Group:          Development/Languages/Python
Source:         https://pypi.python.org/packages/source/p/%{_name}/%{_name}-%{version}.tar.gz
BuildRequires:  python3
BuildRequires:  python3-lxml
BuildRequires:  python3-nose
Requires:       python3-lxml
BuildArch:      noarch

%description
pyPEG is a plain and simple intrinsic parser interpreter framework
for Python. It is based on Parsing Expression Grammar, PEG.
With pyPEG you can parse many formal languages in a very easy way.

%prep
%setup -q -n %{_name}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install \
  --root=%{buildroot} --prefix=%{_prefix}

%check
nosetests-%{py3_ver}

%files
%defattr(-,root,root)
%doc CHANGES.txt LICENSE.txt README.txt
%{python3_sitelib}/pypeg2/
%{python3_sitelib}/%{_name}-*

%changelog
openSUSE Build Service is sponsored by