mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
90 lines
1.7 KiB
Nix
90 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
nodejs,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "cwltool";
|
|
version = "3.1.20251031082601";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "common-workflow-language";
|
|
repo = "cwltool";
|
|
tag = version;
|
|
hash = "sha256-avRNOdL4Ig2cYQWh8SqX/KWfgXyVg0TVfVFrlqzUCLA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail "PYTEST_RUNNER + " ""
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "mypy==1.18.2" "mypy"
|
|
'';
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
argcomplete
|
|
bagit
|
|
coloredlogs
|
|
cwl-utils
|
|
mypy-extensions
|
|
prov
|
|
psutil
|
|
pydot
|
|
rdflib
|
|
requests
|
|
rich-argparse
|
|
ruamel-yaml
|
|
schema-salad
|
|
shellescape
|
|
spython
|
|
toml
|
|
types-psutil
|
|
types-requests
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
mock
|
|
nodejs
|
|
pytest-mock
|
|
pytest-httpserver
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonRelaxDeps = [ "prov" ];
|
|
|
|
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"
|
|
];
|
|
|
|
meta = {
|
|
description = "Common Workflow Language reference implementation";
|
|
homepage = "https://www.commonwl.org";
|
|
changelog = "https://github.com/common-workflow-language/cwltool/releases/tag/${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
|
mainProgram = "cwltool";
|
|
};
|
|
}
|