2021-08-08 23:34:03 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, black
|
2021-08-08 23:34:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools-scm
|
2021-08-08 23:34:03 +00:00
|
|
|
, cachecontrol
|
|
|
|
, lockfile
|
|
|
|
, mistune
|
|
|
|
, rdflib
|
2021-12-06 16:07:01 +00:00
|
|
|
, ruamel-yaml
|
2021-08-08 23:34:03 +00:00
|
|
|
, pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2021-08-08 23:34:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "schema-salad";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "8.3.20220913105718";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-08 23:34:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-18/xLIq1+yM8iQBIeXvRIO4A5GqZS/3qOKXmi439+sQ=";
|
2021-08-08 23:34:03 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachecontrol
|
|
|
|
lockfile
|
|
|
|
mistune
|
|
|
|
rdflib
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2022-07-14 12:49:19 +00:00
|
|
|
] ++ passthru.optional-dependencies.pycodegen;
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
preCheck = ''
|
|
|
|
rm tox.ini
|
|
|
|
'';
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
disabledTests = [
|
2022-04-27 09:35:20 +00:00
|
|
|
# Setup for these tests requires network access
|
2021-08-08 23:34:03 +00:00
|
|
|
"test_secondaryFiles"
|
|
|
|
"test_outputBinding"
|
2022-04-27 09:35:20 +00:00
|
|
|
# Test requires network
|
|
|
|
"test_yaml_tab_error"
|
2021-08-08 23:34:03 +00:00
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"schema_salad"
|
|
|
|
];
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
pycodegen = [ black ];
|
|
|
|
};
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
meta = with lib; {
|
2022-09-30 11:47:45 +00:00
|
|
|
broken = true; # disables on outdated version of mistune
|
2021-08-08 23:34:03 +00:00
|
|
|
description = "Semantic Annotations for Linked Avro Data";
|
|
|
|
homepage = "https://github.com/common-workflow-language/schema_salad";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|