9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
77 lines
1.4 KiB
Nix
77 lines
1.4 KiB
Nix
{ lib
|
|
, black
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, cachecontrol
|
|
, lockfile
|
|
, mistune
|
|
, mypy
|
|
, rdflib
|
|
, ruamel-yaml
|
|
, setuptools
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "schema-salad";
|
|
version = "8.4.20230606143604";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-8Zo9ZhS0r+zsk7nHEh0x7gHYwaoWmyctQYRMph09mvY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cachecontrol
|
|
lockfile
|
|
mistune
|
|
mypy
|
|
rdflib
|
|
ruamel-yaml
|
|
setuptools # needs pkg_resources at runtime
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
] ++ passthru.optional-dependencies.pycodegen;
|
|
|
|
preCheck = ''
|
|
rm tox.ini
|
|
'';
|
|
|
|
disabledTests = [
|
|
# 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 ];
|
|
};
|
|
}
|