Add python3-orjson python3-protobuf rust-maturin

This commit is contained in:
windowsboy111
2023-01-09 10:10:34 +08:00
parent c2e9b08544
commit a24ac22290
9 changed files with 383 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
Name: python3-orjson
Version: 3.8.4
Release: %autorelease
Summary: Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
License: MIT or APACHE-2.0
URL: https://github.com/ijl/orjson
Source0: %{url}/archive/refs/tags/%{version}.tar.gz
BuildArch: noarch
BuildRequires: rust-maturin rust >= 1.60
Requires: libc
%description
orjson is a fast, correct JSON library for Python. It benchmarks as the fastest Python library
for JSON and is more correct than the standard json library or other third-party libraries. It
serializes dataclass, datetime, numpy, and UUID instances natively.
%prep
%autosetup -n %{name}-%{version}
%build
maturin build --release --strip
%install
pip install .
%files
%doc README.md
%license LICENSE-APACHE
%license LICENSE-MIT
%changelog
* Sun Jan 08 2023 windowsboy111 <wboy111@outlook.com> - 3.8.4-1
- Initial package.