61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, black
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cachecontrol
|
|
, lockfile
|
|
, mistune
|
|
, rdflib
|
|
, ruamel-yaml
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "schema-salad";
|
|
version = "8.2.20220204150214";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-PlPb/nE3eWueUTWSDpa7JxPe2ee+KFna5VTR3IsClwQ=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|