about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mypy/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/mypy/default.nix')
-rw-r--r--pkgs/development/python-modules/mypy/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mypy/default.nix b/pkgs/development/python-modules/mypy/default.nix
index b81f46a108085..ffdd8bc5ac2c2 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,11 @@ buildPythonPackage rec {
       "mypyc/test/test_run.py"
     ];
 
+  passthru.tests = {
+    # Failing typing checks on the test-driver result in channel blockers.
+    inherit (nixosTests) nixos-test-driver;
+  };
+
   meta = with lib; {
     description = "Optional static typing for Python";
     homepage = "https://www.mypy-lang.org";