python310Packages.gql: use optional-dependencies
This commit is contained in:
parent
3a835b51ef
commit
2f9d6a033c
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
|||||||
version = "3.4.0";
|
version = "3.4.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "graphql-python";
|
owner = "graphql-python";
|
||||||
@ -35,14 +35,8 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiohttp
|
|
||||||
backoff
|
backoff
|
||||||
botocore
|
|
||||||
graphql-core
|
graphql-core
|
||||||
requests
|
|
||||||
requests-toolbelt
|
|
||||||
urllib3
|
|
||||||
websockets
|
|
||||||
yarl
|
yarl
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -54,7 +48,32 @@ buildPythonPackage rec {
|
|||||||
pytest-console-scripts
|
pytest-console-scripts
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
vcrpy
|
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 = ''
|
preCheck = ''
|
||||||
export PATH=$out/bin:$PATH
|
export PATH=$out/bin:$PATH
|
||||||
|
Loading…
Reference in New Issue
Block a user