python310Packages.schema-salad: use optional-dependencies for black

This commit is contained in:
Sandro Jäckel 2022-06-28 19:33:23 +02:00
parent 68aba2a583
commit 90735c3e4a
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -32,9 +32,8 @@ buildPythonPackage rec {
];
checkInputs = [
black
pytestCheckHook
];
] ++ passthru.optional-dependencies.pycodegen;
disabledTests = [
# Setup for these tests requires network access
@ -48,6 +47,10 @@ buildPythonPackage rec {
"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";