File python-dataclasses-json.spec of Package python-dataclasses-json
#
# spec file for package python-dataclasses-json
#
# Copyright (c) 2021 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python36 1
Name: python-dataclasses-json
Version: 0.5.6
Release: 0
Summary: Easily serialize Python Data Classes to and from JSON
License: MIT
URL: https://lidatong.github.io/dataclasses-json
Source: https://github.com/lidatong/dataclasses-json/archive/refs/tags/v%{version}.tar.gz#/dataclasses-json-%{version}.tar.gz
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module marshmallow-enum}
## SECTION test requirements
BuildRequires: %{python_module marshmallow}
BuildRequires: %{python_module mypy}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing-inspect}
## /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-hypothesis
Requires: python-marshmallow
Requires: python-marshmallow-enum
Requires: python-mypy
Requires: python-typing-inspect
%python_subpackages
%description
Easily serialize Python Data Classes to and from JSON.
%prep
%setup -q -n dataclasses-json-%{version}
%build
%python_build
%install
%python_install
%python_expand rm -f %{buildroot}%{_bindir}/publish.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/dataclasses_json*
%changelog