maturin: add version test

This commit is contained in:
seth
2024-07-11 23:57:14 -04:00
parent 10516a7c63
commit 5bf72c97bc
+8 -1
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";