depot/third_party/nixpkgs/pkgs/applications/science/misc/cwltool/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

77 lines
1.4 KiB
Nix

{ lib
, fetchFromGitHub
, git
, nodejs
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "cwltool";
version = "3.1.20211104071347";
format = "setuptools";
disabled = python3.pythonOlder "3.6";
src = fetchFromGitHub {
owner = "common-workflow-language";
repo = pname;
rev = version;
sha256 = "sha256-tp4SdilW2PKav7b3/BchXYl33W9U0aQH6FPdOhHSvIQ=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'prov == 1.5.1' 'prov' \
--replace "setup_requires=PYTEST_RUNNER," ""
'';
nativeBuildInputs = [
git
];
propagatedBuildInputs = with python3.pkgs; [
argcomplete
bagit
coloredlogs
mypy-extensions
prov
psutil
pydot
rdflib
requests
ruamel-yaml
schema-salad
shellescape
typing-extensions
];
checkInputs = with python3.pkgs; [
mock
nodejs
pytest-mock
pytest-xdist
pytestCheckHook
];
disabledTests = [
"test_content_types"
"test_env_filtering"
"test_http_path_mapping"
];
disabledTestPaths = [
"tests/test_udocker.py"
"tests/test_provenance.py"
];
pythonImportsCheck = [
"cwltool"
];
meta = with lib; {
description = "Common Workflow Language reference implementation";
homepage = "https://www.commonwl.org";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ veprbl ];
};
}