forked from pool/python-dataclasses-json
Accepting request 1174878 from home:mslacken:ml
- initial commit of dataclasses-json ------------------------------------------------------------------- OBS-URL: https://build.opensuse.org/request/show/1174878 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dataclasses-json?expand=0&rev=1
This commit is contained in:
56
python-dataclasses-json.spec
Normal file
56
python-dataclasses-json.spec
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
# spec file for package python-dataclasses-json
|
||||
#
|
||||
# Copyright (c) 2024 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/
|
||||
#
|
||||
|
||||
|
||||
Name: python-dataclasses-json
|
||||
Version: 0.6.5
|
||||
Release: 0
|
||||
Summary: API for encoding and decoding dataclasses to and from JSON
|
||||
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
|
||||
License: MIT
|
||||
URL: python-dataclasses-json
|
||||
Source: https://github.com/lidatong/dataclasses-json/archive/refs/tags/v%{version}.tar.gz#/dataclasses-json-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core}
|
||||
BuildRequires: %{python_module poetry-dynamic-versioning}
|
||||
BuildRequires: %{python_module poetry}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This library provides a simple API for encoding and decoding dataclasses to and from JSON.
|
||||
|
||||
It's very easy to get started.
|
||||
|
||||
%prep
|
||||
%autosetup -n dataclasses-json-%{version}
|
||||
sed -i '/\[tool.poetry-dynamic-versioning\]/,+1d' pyproject.toml
|
||||
sed -i 's/version = "0.0.0"/version = "%{version}"/' pyproject.toml
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install --no-build-isolation
|
||||
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
||||
|
||||
%files %python_files
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user