2020-07-23 11:20:27 +00:00
#
# spec file for package python-pypandoc
#
2024-03-14 23:55:34 +00:00
# Copyright (c) 2024 SUSE LLC
2020-07-23 11:20:27 +00:00
#
# 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/
#
2023-05-24 23:43:40 +00:00
%define base_name pypandoc
2024-10-25 23:48:49 +00:00
%{?sle15_python_module_pythons}
2020-07-23 11:20:27 +00:00
Name : python-pypandoc
2024-10-18 10:49:35 +00:00
Version : 1.14
2020-07-23 11:20:27 +00:00
Release : 0
Summary : Thin wrapper for pandoc
License : MIT
2024-11-20 15:46:22 +00:00
URL : https://github.com/JessicaTegner/pypandoc
Source : https://github.com/JessicaTegner/pypandoc/archive/refs/tags/v%{version} .tar.gz#/pypandoc-%{version}.tar.gz
# PATCH-FIX-UPSTREAM: https://github.com/JessicaTegner/pypandoc/commit/50f3b0867e82874edfd8828087acb6a52ef2eaef
Patch1 : remove-py313-upper-bound.patch
2023-05-24 23:43:40 +00:00
BuildRequires : %{python_module pandocfilters}
2020-07-23 11:20:27 +00:00
BuildRequires : %{python_module pip}
2024-03-14 23:55:34 +00:00
BuildRequires : %{python_module poetry}
2020-11-22 14:26:09 +00:00
BuildRequires : %{python_module pytest}
2020-07-23 11:20:27 +00:00
BuildRequires : %{python_module wheel}
BuildRequires : fdupes
BuildRequires : pandoc
BuildRequires : python-rpm-macros
BuildRequires : texlive-latex-bin
2022-07-17 01:32:39 +00:00
BuildRequires : texlive-xcolor
2024-04-03 06:36:39 +00:00
BuildRequires : tex(amsmath.sty)
2024-03-14 23:55:34 +00:00
BuildRequires : tex(bookmark.sty)
2020-07-23 11:20:27 +00:00
Requires : pandoc
2020-11-22 14:26:09 +00:00
Suggests : ghc-citeproc
2021-12-20 11:03:50 +00:00
ExcludeArch : %{ix86}
2023-05-24 23:43:40 +00:00
BuildArch : noarch
2020-07-23 11:20:27 +00:00
%python_subpackages
%description
pypandoc provides a thin wrapper for pandoc, a universal document converter.
%prep
2024-11-20 15:46:22 +00:00
%autosetup -p1 -n pypandoc-%{version}
2021-12-05 00:08:40 +00:00
2020-07-23 11:20:27 +00:00
%build
2024-03-14 23:55:34 +00:00
%pyproject_wheel
2020-07-23 11:20:27 +00:00
%install
2024-03-14 23:55:34 +00:00
%pyproject_install
2020-07-23 11:20:27 +00:00
%python_expand %fdupes %{buildroot} %{$python_sitelib}
%check
2023-05-24 23:43:40 +00:00
# 'test_basic_conversion_from_http_url' needs network
# 'test_conversion_with_data_files' => https://github.com/JessicaTegner/pypandoc/issues/278
2024-11-20 15:46:22 +00:00
%pytest tests.py -k 'not test_basic_conversion_from_http_url and not test_conversion_with_data_files and not test_basic_conversion_from_file_pattern_pathlib_glob'
2020-07-23 11:20:27 +00:00
%files %{python_files}
%license LICENSE
%doc README.md
2023-05-24 23:45:10 +00:00
%{python_sitelib} /pypandoc
2024-03-14 23:55:34 +00:00
%{python_sitelib} /pypandoc-%{version} .dist-info
2020-07-23 11:20:27 +00:00
%changelog