1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{ lib
, black
, buildPythonPackage
, cachecontrol
, fetchFromGitHub
, importlib-resources
, mistune
, mypy-extensions
, pytestCheckHook
, pythonOlder
, rdflib
, requests
, ruamel-yaml
, setuptools-scm
}:
buildPythonPackage rec {
pname = "schema-salad";
version = "8.5.20240311110950";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "common-workflow-language";
repo = "schema_salad";
rev = "refs/tags/${version}";
hash = "sha256-bjeVgV9ovIVvGvSay24vKkzSXBbzgV05BkO5DojTX3o=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
cachecontrol
mistune
mypy-extensions
rdflib
requests
ruamel-yaml
] ++ cachecontrol.optional-dependencies.filecache
++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
nativeCheckInputs = [
pytestCheckHook
] ++ passthru.optional-dependencies.pycodegen;
preCheck = ''
rm tox.ini
'';
disabledTests = [
"test_load_by_yaml_metaschema"
# Setup for these tests requires network access
"test_secondaryFiles"
"test_outputBinding"
# Test requires network
"test_yaml_tab_error"
"test_bad_schemas"
];
pythonImportsCheck = [
"schema_salad"
];
passthru.optional-dependencies = {
pycodegen = [
black
];
};
meta = with lib; {
description = "Semantic Annotations for Linked Avro Data";
homepage = "https://github.com/common-workflow-language/schema_salad";
changelog = "https://github.com/common-workflow-language/schema_salad/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ veprbl ];
};
}
|