From 2f9d6a033cb92d8c7524e59548f990cc02087ad8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Nov 2022 09:12:14 +0100 Subject: [PATCH] python310Packages.gql: use optional-dependencies --- .../python-modules/gql/default.nix | 35 ++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/gql/default.nix b/pkgs/development/python-modules/gql/default.nix index 2adcf894dcca..bd41fd24ee10 100644 --- a/pkgs/development/python-modules/gql/default.nix +++ b/pkgs/development/python-modules/gql/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { version = "3.4.0"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "graphql-python"; @@ -35,14 +35,8 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - aiohttp backoff - botocore graphql-core - requests - requests-toolbelt - urllib3 - websockets yarl ]; @@ -54,7 +48,32 @@ buildPythonPackage rec { pytest-console-scripts pytestCheckHook vcrpy - ]; + ] ++ passthru.optional-dependencies.all; + + passthru.optional-dependencies = { + all = [ + aiohttp + botocore + requests + requests-toolbelt + urllib3 + websockets + ]; + aiohttp = [ + aiohttp + ]; + requests = [ + requests + requests-toolbelt + urllib3 + ]; + websockets = [ + websockets + ]; + botocore = [ + botocore + ]; + }; preCheck = '' export PATH=$out/bin:$PATH