740b557
%global pypi_name HASS-data-detective
740b557
%global pkg_name hass-data-detective
740b557
740b557
Name:           python-%{pkg_name}
d11df24
Version:        2.4
fb299ce
Release:        4%{?dist}
740b557
Summary:        Tools for studying Home Assistant data
740b557
740b557
License:        MIT
740b557
URL:            https://github.com/robmarkcole/HASS-data-detective
ab3873e
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
740b557
BuildArch:      noarch
740b557
740b557
%description
740b557
This package provides a set of convenience functions and classes to analyze the
740b557
data in your Home Assistant database.
740b557
740b557
%package -n     python3-%{pkg_name}
740b557
Summary:        %{summary}
740b557
740b557
BuildRequires:  python3-devel
ecebd3c
BuildRequires:  python3-setuptools
740b557
BuildRequires:  python3-pandas
740b557
BuildRequires:  python3-pytz
740b557
BuildRequires:  python3-ruamel-yaml
740b557
BuildRequires:  python3-setuptools
740b557
BuildRequires:  python3-sqlalchemy
740b557
BuildRequires:  python3-pytest-timeout
740b557
BuildRequires:  python3-pytest
740b557
%{?python_provide:%python_provide python3-%{pkg_name}}
740b557
740b557
%description -n python3-%{pkg_name}
740b557
This package provides a set of convenience functions and classes to analyze the
740b557
data in your Home Assistant database.
740b557
740b557
%prep
740b557
%autosetup -n %{pypi_name}-%{version}
740b557
rm -rf %{pypi_name}.egg-info
ea69538
sed -i -e 's/2.1/2.3/g' setup.py
740b557
740b557
%build
740b557
%py3_build
740b557
740b557
%install
740b557
%py3_install
740b557
740b557
%check
436ed14
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \
436ed14
  -k "not test_load_hass_config"
740b557
740b557
%files -n python3-%{pkg_name}
740b557
%license LICENSE
740b557
%doc README.md
740b557
%{python3_sitelib}/detective/
ea69538
%{python3_sitelib}/HASS_data_detective-%{version}-py%{python3_version}.egg-info/
740b557
740b557
%changelog
fb299ce
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-4
fb299ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
fb299ce
fc55d38
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-3
fc55d38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
fc55d38
a8bf18d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.4-2
a8bf18d
- Rebuilt for Python 3.10
a8bf18d
d11df24
* Tue Feb 09 2021 Fabian Affolter <mail@fabian-affolter.ch> - 2.4-1
d11df24
- Update to latest upstream release 2.4
d11df24
dece833
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-5
dece833
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
dece833
ecebd3c
* Thu Aug 20 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.3-4
ecebd3c
- Fix FTBFS (rhbz#1865291)
ecebd3c
db951b8
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-3
db951b8
- Second attempt - Rebuilt for
db951b8
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
db951b8
8dc5135
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
8dc5135
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8dc5135
ab3873e
* Sat Jun 27 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.3-1
ab3873e
- Update to new upstream release 2.3
ab3873e
740b557
* Tue Jun 09 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.1-1
740b557
- Initial package for Fedora