File libratom.spec of Package python-libratom
#
# spec file for package libratom
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%if 0%{?suse_version} && 0%{?suse_version} <= 1550
%{?sle15_python_module_pythons}
%else
%global pythons %{primary_python}
%endif
Name: libratom
Version: 0.7.1
Release: 0
Summary: Python library and supporting utilities to parse and process PST and mbox email sources
License: MIT
URL: https://github.com/libratom/libratom
Source: https://files.pythonhosted.org/packages/source/l/libratom/libratom-%{version}.tar.gz
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-beautifulsoup4
Requires: python-click
Requires: python-click-log
Requires: python-enlighten
Requires: python-humanfriendly
Requires: python-jsonschema
Requires: python-libpff-python-ratom
Requires: python-packaging
Requires: python-pbr
Requires: python-psutil
Requires: python-spacy
Requires: python-sqlalchemy
Requires: python-striprtf
Requires: python-tabulate
Requires: python-treelib
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module click-log}
BuildRequires: %{python_module click}
#BuildRequires: %{python_module enlighten}
BuildRequires: %{python_module humanfriendly}
BuildRequires: %{python_module jsonschema}
#BuildRequires: %{python_module libpff-python-ratom}
#BuildRequires: %{python_module mock}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module pytest-click}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-sugar}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module spacy}
BuildRequires: %{python_module sqlalchemy}
#BuildRequires: %{python_module striprtf}
BuildRequires: %{python_module tabulate}
#BuildRequires: %{python_module treelib}
# /SECTION
%description
Python library and supporting utilities to parse and process PST and mbox email sources
%prep
%autosetup -p1 -n libratom-%{version}
%build
# unpin the versions
mv requirements.in requirements.txt
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# %pytest
%files
%doc AUTHORS ChangeLog README.md
%license LICENSE
%python_alternative %{_bindir}/ratom
%{python_sitelib}/libratom
%{python_sitelib}/libratom-%{version}.dist-info
%dir %{_prefix}/libratom/data/
%{_prefix}/libratom/data/perm-headers.csv
%{_prefix}/libratom/data/media_types.json
%{_prefix}/libratom/data/eml_dump_input.schema.json
%{_prefix}/libratom/data/__init__.py
%changelog