1{ lib
2, black
3, buildPythonPackage
4, fetchPypi
5, setuptools-scm
6, cachecontrol
7, lockfile
8, mistune
9, rdflib
10, ruamel-yaml
11, pytestCheckHook
12, pythonOlder
13}:
14
15buildPythonPackage rec {
16 pname = "schema-salad";
17 version = "8.3.20220913105718";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-18/xLIq1+yM8iQBIeXvRIO4A5GqZS/3qOKXmi439+sQ=";
25 };
26
27 nativeBuildInputs = [
28 setuptools-scm
29 ];
30
31 propagatedBuildInputs = [
32 cachecontrol
33 lockfile
34 mistune
35 rdflib
36 ruamel-yaml
37 ];
38
39 checkInputs = [
40 pytestCheckHook
41 ] ++ passthru.optional-dependencies.pycodegen;
42
43 preCheck = ''
44 rm tox.ini
45 '';
46
47 disabledTests = [
48 # Setup for these tests requires network access
49 "test_secondaryFiles"
50 "test_outputBinding"
51 # Test requires network
52 "test_yaml_tab_error"
53 ];
54
55 pythonImportsCheck = [
56 "schema_salad"
57 ];
58
59 passthru.optional-dependencies = {
60 pycodegen = [ black ];
61 };
62
63 meta = with lib; {
64 broken = true; # disables on outdated version of mistune
65 description = "Semantic Annotations for Linked Avro Data";
66 homepage = "https://github.com/common-workflow-language/schema_salad";
67 license = with licenses; [ asl20 ];
68 maintainers = with maintainers; [ veprbl ];
69 };
70}