2021-08-08 23:34:03 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, git
|
|
|
|
, nodejs
|
|
|
|
, python3
|
2021-08-08 23:34:03 +00:00
|
|
|
}:
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2021-08-08 23:34:03 +00:00
|
|
|
pname = "cwltool";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "3.1.20230201130431";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "common-workflow-language";
|
|
|
|
repo = pname;
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "sha256-rx5rdB8OgJ7Mck3pm1GRrymZbQ3lHlXFecICb/pbnKg=";
|
2021-08-08 23:34:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2023-01-20 10:41:00 +00:00
|
|
|
--replace "ruamel.yaml >= 0.15, < 0.17.22" "ruamel.yaml" \
|
2022-01-13 20:06:32 +00:00
|
|
|
--replace "prov == 1.5.1" "prov" \
|
2021-12-06 16:07:01 +00:00
|
|
|
--replace "setup_requires=PYTEST_RUNNER," ""
|
2021-08-08 23:34:03 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
git
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-08-08 23:34:03 +00:00
|
|
|
argcomplete
|
|
|
|
bagit
|
|
|
|
coloredlogs
|
2023-01-20 10:41:00 +00:00
|
|
|
cwl-utils
|
2021-08-08 23:34:03 +00:00
|
|
|
mypy-extensions
|
|
|
|
prov
|
|
|
|
psutil
|
|
|
|
pydot
|
2021-12-06 16:07:01 +00:00
|
|
|
rdflib
|
|
|
|
requests
|
|
|
|
ruamel-yaml
|
2021-08-08 23:34:03 +00:00
|
|
|
schema-salad
|
|
|
|
shellescape
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-12-06 16:07:01 +00:00
|
|
|
mock
|
|
|
|
nodejs
|
|
|
|
pytest-mock
|
2023-01-20 10:41:00 +00:00
|
|
|
pytest-httpserver
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_content_types"
|
|
|
|
"test_env_filtering"
|
|
|
|
"test_http_path_mapping"
|
2023-01-20 10:41:00 +00:00
|
|
|
"test_modification_date"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_udocker.py"
|
|
|
|
"tests/test_provenance.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"cwltool"
|
|
|
|
];
|
2021-08-08 23:34:03 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Common Workflow Language reference implementation";
|
2021-08-08 23:34:03 +00:00
|
|
|
homepage = "https://www.commonwl.org";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/common-workflow-language/cwltool/releases/tag/${version}";
|
2021-08-08 23:34:03 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|