2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mypy-extensions,
|
|
|
|
pytest-xdist,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
ruamel-yaml,
|
|
|
|
schema-salad,
|
|
|
|
setuptools,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cwl-upgrader";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.2.11";
|
|
|
|
pyproject = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "common-workflow-language";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "cwl-upgrader";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-P8607Io/KIJqAnrValM+rRK59tQITcC/jyGwkge8qN0=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2024-01-25 14:12:00 +00:00
|
|
|
# Version detection doesn't work for schema_salad
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace '"schema_salad",' ""
|
2023-01-20 10:41:00 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
mypy-extensions
|
2023-01-20 10:41:00 +00:00
|
|
|
ruamel-yaml
|
|
|
|
schema-salad
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "cwlupgrader" ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-25 14:12:00 +00:00
|
|
|
description = "Library to upgrade CWL syntax to a newer version";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cwl-upgrader";
|
2024-01-25 14:12:00 +00:00
|
|
|
homepage = "https://github.com/common-workflow-language/cwl-upgrader";
|
|
|
|
changelog = "https://github.com/common-workflow-language/cwl-upgrader/releases/tag/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|