nbqa: use versionCheckHook

This commit is contained in:
Robert Schütz
2024-09-23 11:47:37 -07:00
parent 26bfa2c7f2
commit 23e6b80a01
+4 -10
View File
@@ -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";