From 5bf72c97bcf0f76cab8d666cb13c0b4098130cd7 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 11 Jun 2024 20:13:03 -0400 Subject: [PATCH] maturin: add version test --- pkgs/by-name/ma/maturin/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ma/maturin/package.nix b/pkgs/by-name/ma/maturin/package.nix index 029e6efb8bca..b80bfa29f4c6 100644 --- a/pkgs/by-name/ma/maturin/package.nix +++ b/pkgs/by-name/ma/maturin/package.nix @@ -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";