2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "snakemake";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "7.25.3";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "snakemake";
|
|
|
|
repo = pname;
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-KrstajTocVX5Tw7aiPoJ9vxJ0nKF+jqJcYJKrJvBt0Q=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
appdirs
|
2021-07-24 12:14:16 +00:00
|
|
|
configargparse
|
2021-06-28 23:13:55 +00:00
|
|
|
connection-pool
|
2020-04-24 23:36:52 +00:00
|
|
|
datrie
|
|
|
|
docutils
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
2023-05-24 13:37:59 +00:00
|
|
|
humanfriendly
|
2021-07-21 07:28:18 +00:00
|
|
|
jinja2
|
2020-04-24 23:36:52 +00:00
|
|
|
jsonschema
|
|
|
|
nbformat
|
|
|
|
psutil
|
2020-11-21 19:51:51 +00:00
|
|
|
pulp
|
2020-04-24 23:36:52 +00:00
|
|
|
pyyaml
|
|
|
|
requests
|
2023-05-24 13:37:59 +00:00
|
|
|
reretry
|
2021-05-28 09:39:13 +00:00
|
|
|
smart-open
|
2021-06-28 23:13:55 +00:00
|
|
|
stopit
|
|
|
|
tabulate
|
2023-05-24 13:37:59 +00:00
|
|
|
throttler
|
2020-04-24 23:36:52 +00:00
|
|
|
toposort
|
|
|
|
wrapt
|
2022-04-27 09:35:20 +00:00
|
|
|
yte
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
# See
|
|
|
|
# https://github.com/snakemake/snakemake/blob/main/.github/workflows/main.yml#L99
|
2023-05-24 13:37:59 +00:00
|
|
|
# for the current basic test suite. Slurm, Tibanna and Tes require extra
|
2022-02-20 05:27:41 +00:00
|
|
|
# setup.
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-02-20 05:27:41 +00:00
|
|
|
pandas
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
2023-05-24 13:37:59 +00:00
|
|
|
"tests/test_slurm.py"
|
2022-02-20 05:27:41 +00:00
|
|
|
"tests/test_tes.py"
|
|
|
|
"tests/test_tibanna.py"
|
|
|
|
"tests/test_linting.py"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_github_issue1396"
|
|
|
|
"test_github_issue1460"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"snakemake"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://snakemake.github.io";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "Python-based execution environment for make-like workflows";
|
|
|
|
longDescription = ''
|
|
|
|
Snakemake is a workflow management system that aims to reduce the complexity of
|
|
|
|
creating workflows by providing a fast and comfortable execution environment,
|
|
|
|
together with a clean and readable specification language in Python style. Snakemake
|
|
|
|
workflows are essentially Python scripts extended by declarative code to define
|
|
|
|
rules. Rules describe how to create output files from input files.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ helkafen renatoGarcia veprbl ];
|
|
|
|
};
|
|
|
|
}
|