2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
argparse-dataclass,
|
|
|
|
buildPythonPackage,
|
|
|
|
configargparse,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
2024-01-13 08:15:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snakemake-interface-common";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.17.2";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "snakemake";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "snakemake-interface-common";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-N8mSS+gABAgXm01BcsMk89a3HsIsc3RHxCAi3GlxtRg=";
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-01-13 08:15:51 +00:00
|
|
|
argparse-dataclass
|
|
|
|
configargparse
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonImportsCheck = [ "snakemake_interface_common" ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pytestFlagsArray = [ "tests/tests.py" ];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Common functions and classes for Snakemake and its plugins";
|
|
|
|
homepage = "https://github.com/snakemake/snakemake-interface-common";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/snakemake/snakemake-interface-common/releases/tag/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|