mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Add python3-orjson python3-protobuf rust-maturin
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user