nixpkgs/pkgs/development/python-modules/snakemake-interface-scheduler-plugins/default.nix

63 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
snakemake-interface-common,
# tests
pytestCheckHook,
snakemake,
# passthru
snakemake-interface-scheduler-plugins,
}:
buildPythonPackage (finalAttrs: {
pname = "snakemake-interface-scheduler-plugins";
version = "2.0.2";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "snakemake";
repo = "snakemake-interface-scheduler-plugins";
tag = "v${finalAttrs.version}";
hash = "sha256-BowMwZllFR9IKYUMhISAbf606awTxfmS/nQxkGgb4y8=";
};
build-system = [
hatchling
];
dependencies = [
snakemake-interface-common
];
pythonImportsCheck = [ "snakemake_interface_scheduler_plugins" ];
nativeCheckInputs = [
pytestCheckHook
snakemake
];
enabledTestPaths = [ "tests/tests.py" ];
# Circular dependency with snakemake
doCheck = false;
passthru.tests.pytest = snakemake-interface-scheduler-plugins.overridePythonAttrs {
doCheck = true;
};
meta = {
description = "Provides a stable interface for interactions between Snakemake and its scheduler plugins";
homepage = "https://github.com/snakemake/snakemake-interface-scheduler-plugins";
changelog = "https://github.com/snakemake/snakemake-interface-scheduler-plugins/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kyehn ];
};
})