nixpkgs/pkgs/applications/science/misc/cwltool/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
1.6 KiB
Nix
Raw Normal View History

2021-07-21 04:52:10 +00:00
{ lib
, fetchFromGitHub
, git
, nodejs
, python3
2021-07-21 04:52:10 +00:00
}:
python3.pkgs.buildPythonApplication rec {
2021-07-21 04:52:10 +00:00
pname = "cwltool";
version = "3.1.20221201130942";
format = "setuptools";
2021-07-21 04:52:10 +00:00
src = fetchFromGitHub {
owner = "common-workflow-language";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-PeddmHMJYtj/AAItmUVeyETizF7SKzkJ3bXYkeZU+xs=";
2021-07-21 04:52:10 +00:00
};
postPatch = ''
substituteInPlace setup.py \
--replace "ruamel.yaml >= 0.15, < 0.17.22" "ruamel.yaml" \
--replace "prov == 1.5.1" "prov" \
--replace "setup_requires=PYTEST_RUNNER," ""
2021-07-21 04:52:10 +00:00
'';
nativeBuildInputs = [
git
];
propagatedBuildInputs = with python3.pkgs; [
2021-07-21 04:52:10 +00:00
argcomplete
bagit
coloredlogs
cwl-utils
2021-07-21 04:52:10 +00:00
mypy-extensions
prov
psutil
pydot
rdflib
requests
ruamel-yaml
2021-07-21 04:52:10 +00:00
schema-salad
shellescape
typing-extensions
];
checkInputs = with python3.pkgs; [
mock
nodejs
pytest-mock
pytest-httpserver
pytest-xdist
pytestCheckHook
];
disabledTests = [
"test_content_types"
"test_env_filtering"
"test_http_path_mapping"
"test_modification_date"
];
disabledTestPaths = [
"tests/test_udocker.py"
"tests/test_provenance.py"
];
pythonImportsCheck = [
"cwltool"
];
2021-07-21 04:52:10 +00:00
meta = with lib; {
description = "Common Workflow Language reference implementation";
2021-07-21 04:52:10 +00:00
homepage = "https://www.commonwl.org";
changelog = "https://github.com/common-workflow-language/cwltool/releases/tag/${version}";
2021-07-21 04:52:10 +00:00
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ veprbl ];
};
}