From 90735c3e4a2d6d841c3b4263bf88636cffac5f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 28 Jun 2022 19:33:23 +0200 Subject: [PATCH] python310Packages.schema-salad: use optional-dependencies for black --- pkgs/development/python-modules/schema-salad/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/schema-salad/default.nix b/pkgs/development/python-modules/schema-salad/default.nix index 995c7e206fa..1980b18dab8 100644 --- a/pkgs/development/python-modules/schema-salad/default.nix +++ b/pkgs/development/python-modules/schema-salad/default.nix @@ -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";