diff --git a/pkgs/applications/science/misc/cwltool/default.nix b/pkgs/applications/science/misc/cwltool/default.nix index 21e3c47b323d..7cbd9354a372 100644 --- a/pkgs/applications/science/misc/cwltool/default.nix +++ b/pkgs/applications/science/misc/cwltool/default.nix @@ -1,22 +1,35 @@ { lib -, python3Packages +, fetchFromGitHub +, git +, nodejs +, python3 }: -python3Packages.buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "cwltool"; - version = "3.1.20210628163208"; + version = "3.1.20211104071347"; + format = "setuptools"; - src = python3Packages.fetchPypi { - inherit pname version; - sha256 = "21b885f725420413d2f87eadc5e81c08a9c91beceda89b35d1a702ec4df47e52"; + 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 'prov == 1.5.1' 'prov' \ + --replace "setup_requires=PYTEST_RUNNER," "" ''; - propagatedBuildInputs = with python3Packages; [ + nativeBuildInputs = [ + git + ]; + + propagatedBuildInputs = with python3.pkgs; [ argcomplete bagit coloredlogs @@ -24,18 +37,41 @@ python3Packages.buildPythonApplication rec { prov psutil pydot + rdflib + requests + ruamel-yaml schema-salad shellescape typing-extensions ]; - doCheck = false; # hard to setup - pythonImportsCheck = [ "cwltool" ]; + 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 ]; - description = "Common Workflow Language reference implementation"; maintainers = with maintainers; [ veprbl ]; }; } diff --git a/pkgs/development/python-modules/schema-salad/default.nix b/pkgs/development/python-modules/schema-salad/default.nix index 4e778054875e..a5fd59fb60fa 100644 --- a/pkgs/development/python-modules/schema-salad/default.nix +++ b/pkgs/development/python-modules/schema-salad/default.nix @@ -1,4 +1,5 @@ { lib +, black , buildPythonPackage , fetchPypi , cachecontrol @@ -8,15 +9,19 @@ , rdflib-jsonld , ruamel_yaml , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "schema-salad"; - version = "8.2.20210918131710"; + version = "8.2.20211104054942"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "464180407f49a3533cd5a5bc7db9254769bc77595ea00562bbe4a50493f7f445"; + sha256 = "sha256-1crKyAON8iZBYxP6bhj0MxV3fSpnCh3Lqp8x91KLBT8="; }; propagatedBuildInputs = [ @@ -28,13 +33,20 @@ buildPythonPackage rec { ruamel_yaml ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + black + pytestCheckHook + ]; + disabledTests = [ # setup for these tests requires network access "test_secondaryFiles" "test_outputBinding" ]; - pythonImportsCheck = [ "schema_salad" ]; + + pythonImportsCheck = [ + "schema_salad" + ]; meta = with lib; { description = "Semantic Annotations for Linked Avro Data";