python3Packages.snakemake-interface-logger-plugins: enable tests

Tests are now possible since snakemake-logger-plugin-rich is packaged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Gaetan Lepage
2026-05-22 10:10:07 +00:00
co-authored by Claude Opus 4.7
parent 2e7ebe3578
commit 669f01f035
@@ -8,6 +8,13 @@
# dependencies
snakemake-interface-common,
# tests
pytestCheckHook,
snakemake-logger-plugin-rich,
# passthru
snakemake-interface-logger-plugins,
}:
buildPythonPackage (finalAttrs: {
@@ -33,8 +40,18 @@ buildPythonPackage (finalAttrs: {
pythonImportsCheck = [ "snakemake_interface_logger_plugins" ];
# Tests require snakemake-logger-plugin-rich, which is not packaged in nixpkgs
nativeCheckInputs = [
pytestCheckHook
snakemake-logger-plugin-rich
];
enabledTestPaths = [ "tests/tests.py" ];
# Circular dependency with snakemake
doCheck = false;
passthru.tests.pytest = snakemake-interface-logger-plugins.overridePythonAttrs {
doCheck = true;
};
meta = {
description = "Stable interface for interactions between Snakemake and its logger plugins";