maturin: add version test

This commit is contained in:
seth 2024-06-11 20:13:03 -04:00
parent 10516a7c63
commit 5bf72c97bc
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -6,6 +6,8 @@
rustPlatform,
darwin,
libiconv,
testers,
maturin,
}:
rustPlatform.buildRustPackage rec {
@ -29,7 +31,12 @@ rustPlatform.buildRustPackage rec {
# Requires network access, fails in sandbox.
doCheck = false;
passthru.tests.pyo3 = callPackage ./pyo3-test { };
passthru = {
tests = {
version = testers.testVersion { package = maturin; };
pyo3 = callPackage ./pyo3-test { };
};
};
meta = {
description = "Build and publish Rust crates Python packages";