python312Packages.mypy: run nixos-test-driver test in passthru

Failing typing checks on the test-driver result in channel blockers.
This commit is contained in:
Martin Weinelt 2024-06-06 01:04:34 +02:00
parent ab897a8c62
commit 6791c1a717
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

@ -26,6 +26,7 @@
filelock, filelock,
pytest-xdist, pytest-xdist,
pytestCheckHook, pytestCheckHook,
nixosTests,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -118,6 +119,10 @@ buildPythonPackage rec {
"mypyc/test/test_run.py" "mypyc/test/test_run.py"
]; ];
passthru.tests = {
inherit (nixosTests) nixos-test-driver;
};
meta = with lib; { meta = with lib; {
description = "Optional static typing for Python"; description = "Optional static typing for Python";
homepage = "https://www.mypy-lang.org"; homepage = "https://www.mypy-lang.org";