python3Packages.snakemake-interface-report-plugins: cleanup

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Gaetan Lepage
2026-05-22 10:10:06 +00:00
co-authored by Claude Opus 4.7
parent f92b3f5b26
commit 1276849637
@@ -2,32 +2,62 @@
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
snakemake-interface-common,
# tests
pytestCheckHook,
snakemake,
# passthru
snakemake-interface-report-plugins,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "snakemake-interface-report-plugins";
version = "1.3.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "snakemake";
repo = "snakemake-interface-report-plugins";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-3ugEmdO1dcusKXXBZBRszlZXX5fhJyYSSF5Uj5CKJkQ=";
};
nativeBuildInputs = [ poetry-core ];
build-system = [
poetry-core
];
propagatedBuildInputs = [ snakemake-interface-common ];
dependencies = [
snakemake-interface-common
];
pythonImportsCheck = [ "snakemake_interface_report_plugins" ];
nativeCheckInputs = [
pytestCheckHook
snakemake
];
enabledTestPaths = [ "tests/tests.py" ];
# Circular dependency with snakemake
doCheck = false;
passthru.tests.pytest = snakemake-interface-report-plugins.overridePythonAttrs {
doCheck = true;
};
meta = {
description = "Interface for Snakemake report plugins";
homepage = "https://github.com/snakemake/snakemake-interface-report-plugins";
changelog = "https://github.com/snakemake/snakemake-interface-report-plugins/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ veprbl ];
};
}
})