python3Packages.msgspec: add 'optional-dependencies'

This commit is contained in:
Bruno BELANYI
2025-10-14 09:18:16 +00:00
parent 0b4defa258
commit d30c263096
@@ -3,7 +3,22 @@
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
attrs,
coverage,
furo,
ipython,
msgpack,
mypy,
pre-commit,
pyright,
pytest,
pyyaml,
setuptools,
sphinx,
sphinx-copybutton,
sphinx-design,
tomli,
tomli-w,
}:
buildPythonPackage rec {
@@ -26,6 +41,36 @@ buildPythonPackage rec {
build-system = [ setuptools ];
optional-dependencies = {
dev = [
coverage
mypy
pre-commit
pyright
]
++ optional-dependencies.doc
++ optional-dependencies.test;
doc = [
furo
ipython
sphinx
sphinx-copybutton
sphinx-design
];
test = [
attrs
msgpack
pytest
]
++ optional-dependencies.yaml
++ optional-dependencies.toml;
toml = [
tomli-w
]
++ lib.optional (pythonOlder 3.11) tomli;
yaml = [ pyyaml ];
};
# Requires libasan to be accessible
doCheck = false;