mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
Diff: https://github.com/snakemake/snakemake-interface-logger-plugins/compare/v2.0.1...v2.1.0 Changelog: https://github.com/snakemake/snakemake-interface-logger-plugins/blob/v2.1.0/CHANGELOG.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
63 lines
1.4 KiB
Nix
63 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
snakemake-interface-common,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
snakemake-logger-plugin-rich,
|
|
|
|
# passthru
|
|
snakemake-interface-logger-plugins,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "snakemake-interface-logger-plugins";
|
|
version = "2.1.0";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "snakemake";
|
|
repo = "snakemake-interface-logger-plugins";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-UBdzJtKukR4Y9KPpu8qJv4HmN9ghncvEqGsTQnHk36k=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
snakemake-interface-common
|
|
];
|
|
|
|
pythonImportsCheck = [ "snakemake_interface_logger_plugins" ];
|
|
|
|
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";
|
|
homepage = "https://github.com/snakemake/snakemake-interface-logger-plugins";
|
|
changelog = "https://github.com/snakemake/snakemake-interface-logger-plugins/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
|
};
|
|
})
|