diff --git a/pkgs/by-name/nb/nbqa/package.nix b/pkgs/by-name/nb/nbqa/package.nix index 1c09784febbd..5d713cd058d0 100644 --- a/pkgs/by-name/nb/nbqa/package.nix +++ b/pkgs/by-name/nb/nbqa/package.nix @@ -6,9 +6,8 @@ # optional-dependencies ruff, - # passthru - testers, - nbqa, + # tests + versionCheckHook, }: python3.pkgs.buildPythonApplication rec { pname = "nbqa"; @@ -68,7 +67,8 @@ python3.pkgs.buildPythonApplication rec { pytestCheckHook yapf ]) - ++ lib.flatten (lib.attrValues optional-dependencies); + ++ lib.flatten (lib.attrValues optional-dependencies) + ++ [ versionCheckHook ]; disabledTests = [ # Test data not found @@ -88,12 +88,6 @@ python3.pkgs.buildPythonApplication rec { "tests/test_include_exclude.py" ]; - passthru = { - tests.version = testers.testVersion { - package = nbqa; - }; - }; - meta = { homepage = "https://github.com/nbQA-dev/nbQA"; changelog = "https://nbqa.readthedocs.io/en/latest/history.html";