New package: python3-nanobind-1.9.2
This commit is contained in:
parent
6173035805
commit
c3b569b4e1
37
srcpkgs/python3-nanobind/template
Normal file
37
srcpkgs/python3-nanobind/template
Normal file
@ -0,0 +1,37 @@
|
||||
# Template file for 'python3-nanobind'
|
||||
pkgname=python3-nanobind
|
||||
version=1.9.2
|
||||
revision=1
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3"
|
||||
checkdepends="cmake python3-devel python3-pytest"
|
||||
short_desc="Tiny and efficient C++/Python bindings"
|
||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/wjakob/nanobind"
|
||||
_robin_map_hash="188c45569cc2a5dd768077c193830b51d33a5020"
|
||||
distfiles="${homepage}/archive/v${version}.tar.gz
|
||||
https://github.com/Tessil/robin-map/archive/${_robin_map_hash}.tar.gz
|
||||
"
|
||||
checksum="149a3da40b0a988513d8cf5e71db3037373823505a3c92f87b988c92d7e0ab34
|
||||
2f4be670fa4f53c3261ed7af392b414a00e75591f87da0a8dd525de376430747"
|
||||
skip_extraction="${_robin_map_hash}.tar.gz"
|
||||
|
||||
post_extract() {
|
||||
vsrcextract -C ext/robin_map "${_robin_map_hash}.tar.gz"
|
||||
}
|
||||
|
||||
do_check() {
|
||||
local testdir=".xbps-testdir/$(date +%s)"
|
||||
|
||||
cmake -S . -B "${testdir}" -DNB_TEST_STABLE_ABI=ON -DNB_TEST_SHARED_BUILD=1
|
||||
cmake --build "${testdir}" ${makejobs}
|
||||
|
||||
cd "${testdir}"
|
||||
python3 -m pytest
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user