mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
7d151454f9
Signed-off-by: windowsboy111 <wboy111@outlook.com>
34 lines
878 B
RPMSpec
34 lines
878 B
RPMSpec
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: 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 orjson-%{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.
|