diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-01-16 01:26:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 01:26:48 +0100 |
commit | 99f3708566b6da0e3979f41cf97c8d6efbcc52a1 (patch) | |
tree | 5a5b4434ca11478bf0c4e61903347ad8bd21a2c9 /pkgs/development | |
parent | 3373439f9019400cee918358a3b7746bda6230d1 (diff) | |
parent | 1493baebd900807f1260624a7e7b8e12920f7bcf (diff) | |
download | nixpkgs-99f3708566b6da0e3979f41cf97c8d6efbcc52a1.tar nixpkgs-99f3708566b6da0e3979f41cf97c8d6efbcc52a1.tar.gz nixpkgs-99f3708566b6da0e3979f41cf97c8d6efbcc52a1.tar.bz2 nixpkgs-99f3708566b6da0e3979f41cf97c8d6efbcc52a1.tar.lz nixpkgs-99f3708566b6da0e3979f41cf97c8d6efbcc52a1.tar.xz nixpkgs-99f3708566b6da0e3979f41cf97c8d6efbcc52a1.tar.zst nixpkgs-99f3708566b6da0e3979f41cf97c8d6efbcc52a1.zip |
Merge pull request #210904 from fabaff/cwltool-bump
cwltool: 3.1.20220224085855 -> 3.1.20221201130942
Diffstat (limited to 'pkgs/development')
3 files changed, 162 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cwl-upgrader/default.nix b/pkgs/development/python-modules/cwl-upgrader/default.nix new file mode 100644 index 00000000000..1c63c6605da --- /dev/null +++ b/pkgs/development/python-modules/cwl-upgrader/default.nix @@ -0,0 +1,53 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest-xdist +, pytestCheckHook +, pythonOlder +, ruamel-yaml +, schema-salad +}: + +buildPythonPackage rec { + pname = "cwl-upgrader"; + version = "1.2.4"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "common-workflow-language"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-3pKnkU8lks3w+N7w2qST9jr4/CS6YzgnBVLTlgq1gf0="; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace "ruamel.yaml >= 0.15, < 0.17.22" "ruamel.yaml" \ + --replace "setup_requires=PYTEST_RUNNER," "" + sed -i "/ruamel.yaml/d" setup.py + ''; + + propagatedBuildInputs = [ + ruamel-yaml + schema-salad + ]; + + checkInputs = [ + pytest-xdist + pytestCheckHook + ]; + + pythonImportsCheck = [ + "cwlupgrader" + ]; + + meta = with lib; { + description = "Library to interface with Yolink"; + homepage = "https://github.com/common-workflow-language/cwl-utils"; + changelog = "https://github.com/common-workflow-language/cwl-utils/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/cwl-utils/default.nix b/pkgs/development/python-modules/cwl-utils/default.nix new file mode 100644 index 00000000000..b0459f3961a --- /dev/null +++ b/pkgs/development/python-modules/cwl-utils/default.nix @@ -0,0 +1,67 @@ +{ lib +, buildPythonPackage +, cachecontrol +, cwl-upgrader +, cwlformat +, fetchFromGitHub +, packaging +, pytest-mock +, pytest-xdist +, pytestCheckHook +, pythonOlder +, rdflib +, requests +, schema-salad +}: + +buildPythonPackage rec { + pname = "cwl-utils"; + version = "0.21"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "common-workflow-language"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-y1zuYaxoE0XUk8UpCLsg4ty0sn+5Uu4ztRnUoJezO/o="; + }; + + propagatedBuildInputs = [ + cachecontrol + cwl-upgrader + packaging + rdflib + requests + schema-salad + ]; + + checkInputs = [ + cwlformat + pytest-mock + pytest-xdist + pytestCheckHook + ]; + + pythonImportsCheck = [ + "cwl_utils" + ]; + + disabledTests = [ + # Don't run tests which require Node.js + "test_context_multiple_regex" + "test_value_from_two_concatenated_expressions" + "test_graph_split" + "test_caches_js_processes" + "test_load_document_with_remote_uri" + ]; + + meta = with lib; { + description = "Utilities for CWL"; + homepage = "https://github.com/common-workflow-language/cwl-utils"; + changelog = "https://github.com/common-workflow-language/cwl-utils/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/development/python-modules/cwlformat/default.nix b/pkgs/development/python-modules/cwlformat/default.nix new file mode 100644 index 00000000000..201155eac59 --- /dev/null +++ b/pkgs/development/python-modules/cwlformat/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, ruamel-yaml +}: + +buildPythonPackage rec { + pname = "cwlformat"; + version = "2022.02.18"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "rabix"; + repo = "cwl-format"; + rev = "refs/tags/${version}"; + hash = "sha256-FI8hUgb/KglTkubZ+StzptoSsYal71ITyyFNg7j48yk="; + }; + + propagatedBuildInputs = [ + ruamel-yaml + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "cwlformat" + ]; + + meta = with lib; { + description = "Code formatter for CWL"; + homepage = "https://github.com/rabix/cwl-format"; + changelog = "https://github.com/rabix/cwl-format/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} |