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
|
|
|
|
, 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-08-12 12:06:08 +00:00
|
|
|
version = "8.3.20220626185350";
|
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-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-g8h3dAdN+tbdLRO3ctmsW+ZLiyhU0zPd1XR+XvEBpwo=";
|
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
|
|
|
|
|
|
|
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; {
|
|
|
|
description = "Semantic Annotations for Linked Avro Data";
|
|
|
|
homepage = "https://github.com/common-workflow-language/schema_salad";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|