ec3fe6c
%global srcname mapclassify
ec3fe6c
ec3fe6c
Name:           python-%{srcname}
e376eef
Version:        2.5.0
c651f6d
Release:        %autorelease
ec3fe6c
Summary:        Classification Schemes for Choropleth Maps
ec3fe6c
2da1c12
License:        BSD-3-Clause
ec3fe6c
URL:            https://github.com/pysal/mapclassify
2da1c12
Source0:        %pypi_source %{srcname}
ec3fe6c
ec3fe6c
BuildArch:      noarch
ec3fe6c
ec3fe6c
BuildRequires:  python3-devel
ec3fe6c
ec3fe6c
# Tests
9806fdc
BuildRequires:  python3dist(rtree)
ec3fe6c
ec3fe6c
%description
ec3fe6c
mapclassify is an open-source python library for Choropleth map classification.
ec3fe6c
It is part of PySAL the Python Spatial Analysis Library.
ec3fe6c
ec3fe6c
ec3fe6c
%package -n     python3-%{srcname}
ec3fe6c
Summary:        %{summary}
ec3fe6c
ec3fe6c
%description -n python3-%{srcname}
ec3fe6c
mapclassify is an open-source python library for Choropleth map classification.
ec3fe6c
It is part of PySAL the Python Spatial Analysis Library.
ec3fe6c
ec3fe6c
ec3fe6c
%prep
ec3fe6c
%autosetup -n %{srcname}-%{version}
ec3fe6c
2da1c12
%generate_buildrequires
2da1c12
%pyproject_buildrequires -x tests
ec3fe6c
ec3fe6c
%build
2da1c12
%pyproject_wheel
ec3fe6c
ec3fe6c
%install
2da1c12
%pyproject_install
2da1c12
%pyproject_save_files %{srcname}
ec3fe6c
ec3fe6c
%check
9806fdc
# This test is flaky due to networkx:
9806fdc
# https://github.com/pysal/mapclassify/pull/77
9806fdc
%{pytest} -k 'not test_smallest_last'
ec3fe6c
2da1c12
%files -n python3-%{srcname} -f %{pyproject_files}
ec3fe6c
%license LICENSE.txt
9806fdc
%doc README.md
ec3fe6c
ec3fe6c
%changelog
c651f6d
%autochangelog