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.4.20230213094415";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-x2co8WjL+e4nBZd0pGUwv39nzNkO5G3dYrYJZeqP31o=";
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 nativeCheckInputs = [
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 "test_bad_schemas"
54 ];
55
56 pythonImportsCheck = [
57 "schema_salad"
58 ];
59
60 passthru.optional-dependencies = {
61 pycodegen = [
62 black
63 ];
64 };
65
66 meta = with lib; {
67 description = "Semantic Annotations for Linked Avro Data";
68 homepage = "https://github.com/common-workflow-language/schema_salad";
69 changelog = "https://github.com/common-workflow-language/schema_salad/releases/tag/${version}";
70 license = with licenses; [ asl20 ];
71 maintainers = with maintainers; [ veprbl ];
72 };
73}