depot/third_party/nixpkgs/pkgs/development/python-modules/schema-salad/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

82 lines
1.7 KiB
Nix

{ lib
, black
, buildPythonPackage
, cachecontrol
, fetchFromGitHub
, importlib-resources
, mistune
, mypy-extensions
, pytestCheckHook
, pythonOlder
, rdflib
, requests
, ruamel-yaml
, setuptools-scm
}:
buildPythonPackage rec {
pname = "schema-salad";
version = "8.5.20240102191336.dev7+g8e95468";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "common-workflow-language";
repo = "schema_salad";
rev = "8e954684b08d222d54b7eff680eaa4d4e65920a9";
hash = "sha256-VoFFKe6XHDytj5UlmsN14RevKcgpl+DSDMGDVS2Ols4=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
cachecontrol
mistune
mypy-extensions
rdflib
requests
ruamel-yaml
] ++ cachecontrol.optional-dependencies.filecache
++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
nativeCheckInputs = [
pytestCheckHook
] ++ passthru.optional-dependencies.pycodegen;
preCheck = ''
rm tox.ini
'';
disabledTests = [
"test_load_by_yaml_metaschema"
# 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 ];
};
}