blob: a4fa55232bbbcb581c1048927514b779aa1f4d3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
Name: python-nanobind
Version: 2.4.0
Release: %autorelease
Summary: nanobind: tiny and efficient C++/Python bindings
License: BSD
URL: https://github.com/wjakob/nanobind
Source: %{pypi_source nanobind}
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
nanobind is a small binding library that exposes C++ types
in Python and vice versa. It is reminiscent of Boost.Python
and pybind11 and uses near-identical syntax.
In contrast to these existing tools, nanobind is more
efficient: bindings compile in a shorter amount of time,
produce smaller binaries, and have better runtime performance.}
%description %_description
%package -n python3-nanobind
Summary: %{summary}
%description -n python3-nanobind %_description
%prep
%autosetup -p1 -n nanobind-%{version}
%generate_buildrequires
%pyproject_buildrequires -t
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files 'nanobind'
%check
%_pyproject_check_import_allow_no_modules -t
%tox -- --parallel 0 -- --verbose
%files -n python3-nanobind -f %{pyproject_files}
%license LICENSE
%changelog
%autochangelog
|