02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, black
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cachecontrol
|
|
, lockfile
|
|
, mistune
|
|
, rdflib
|
|
, ruamel-yaml
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "schema-salad";
|
|
version = "8.3.20220626185350";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-g8h3dAdN+tbdLRO3ctmsW+ZLiyhU0zPd1XR+XvEBpwo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cachecontrol
|
|
lockfile
|
|
mistune
|
|
rdflib
|
|
ruamel-yaml
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
] ++ passthru.optional-dependencies.pycodegen;
|
|
|
|
disabledTests = [
|
|
# Setup for these tests requires network access
|
|
"test_secondaryFiles"
|
|
"test_outputBinding"
|
|
# Test requires network
|
|
"test_yaml_tab_error"
|
|
];
|
|
|
|
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";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|