Commit 23e6b80a authored by Robert Schütz's avatar Robert Schütz
Browse files

nbqa: use versionCheckHook

parent 26bfa2c7
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -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";