mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
Merge pull request #144870 from fabaff/fix-cwltool
cwltool: 3.1.20210628163208 -> 3.1.20211104071347
This commit is contained in:
commit
a1b8eb4a30
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue