dd980fc
%global srcname branca
dd980fc
dd980fc
Name:           python-%{srcname}
3ed52cc
Version:        0.6.0
3ff1fbf
Release:        %autorelease
dd980fc
Summary:        Generate complex HTML+JS pages with Python
dd980fc
dd980fc
License:        MIT
dd980fc
URL:            https://github.com/python-visualization/branca
dd980fc
Source0:        https://github.com/python-visualization/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
dd980fc
dd980fc
BuildArch:      noarch
dd980fc
dd980fc
%global _description \
dd980fc
This library is a spinoff from folium, that would host the non-map-specific \
dd980fc
features. It may become a HTML+JS generation library in the future. It is based \
dd980fc
on Jinja2 only.
dd980fc
dd980fc
%description %{_description}
dd980fc
dd980fc
dd980fc
%package -n     python3-%{srcname}
dd980fc
Summary:        %{summary}
dd980fc
dd980fc
BuildRequires:  python3-devel
13f0a7d
BuildRequires:  python3dist(ipykernel)
13f0a7d
BuildRequires:  python3dist(jupyter-client)
13f0a7d
BuildRequires:  python3dist(nbconvert)
dd980fc
BuildRequires:  python3dist(pytest)
dd980fc
dd980fc
%description -n python3-%{srcname} %{_description}
dd980fc
dd980fc
dd980fc
%prep
dd980fc
%autosetup -n %{srcname}-%{version}
dd980fc
8776895
%generate_buildrequires
3ed52cc
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
8776895
%pyproject_buildrequires
dd980fc
dd980fc
%build
3ed52cc
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
8776895
%pyproject_wheel
dd980fc
dd980fc
%install
8776895
%pyproject_install
8776895
%pyproject_save_files %{srcname}
dd980fc
dd980fc
%check
dd980fc
# Skip selenium test as Firefox is no longer available that way.
dd980fc
rm tests/test_iframe.py
3ec4a02
%{pytest}
dd980fc
8776895
%files -n python3-%{srcname} -f %{pyproject_files}
dd267e6
%doc README.md
8776895
%license LICENSE.txt
dd980fc
dd980fc
%changelog
3ff1fbf
%autochangelog