Blob Blame History Raw
%global srcname pymediawiki
%global modname mediawiki

Name:           python-%{srcname}
Version:        0.7.3
Release:        %autorelease
Summary:        Python wrapper and parser for MediaWiki API

License:        MIT
URL:  {srcname}
Source0:        %{pypi_source}

BuildArch:      noarch
BuildRequires:  python3-devel

%global _description %{expand:
Pymediawiki is a python wrapper and parser for the MediaWiki API.
The goal is to allow users to quickly and efficiently pull data
from the MediaWiki site of their choice instead of worrying about
dealing directly with the API. As such, it does not force the use of
a particular MediaWiki site. It defaults to Wikipedia but other
MediaWiki sites can also be used.}

%description %_description

%package -n     python3-%{srcname}
Summary:        %{summary}

# Importable module is named mediawiki
%py_provides python3-%{modname}

%description -n python3-%{srcname} %_description

%autosetup -n %{srcname}-%{version}

# Remove egg files from source
rm -r %{srcname}.egg-info



%pyproject_save_files %{modname}

# tests provided in sources uses internet connection

%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.rst