From 6791c1a7178d00be55532c0e07a2d5311521fba1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 6 Jun 2024 01:04:34 +0200 Subject: [PATCH] python312Packages.mypy: run nixos-test-driver test in passthru Failing typing checks on the test-driver result in channel blockers. --- pkgs/development/python-modules/mypy/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/mypy/default.nix b/pkgs/development/python-modules/mypy/default.nix index b81f46a108085..5dad7136d2718 100644 --- a/pkgs/development/python-modules/mypy/default.nix +++ b/pkgs/development/python-modules/mypy/default.nix @@ -26,6 +26,7 @@ filelock, pytest-xdist, pytestCheckHook, + nixosTests, }: buildPythonPackage rec { @@ -118,6 +119,10 @@ buildPythonPackage rec { "mypyc/test/test_run.py" ]; + passthru.tests = { + inherit (nixosTests) nixos-test-driver; + }; + meta = with lib; { description = "Optional static typing for Python"; homepage = "https://www.mypy-lang.org";