diff --git a/pkgs/development/python-modules/msgspec/default.nix b/pkgs/development/python-modules/msgspec/default.nix index 44bc828d3625..9ed38523bc29 100644 --- a/pkgs/development/python-modules/msgspec/default.nix +++ b/pkgs/development/python-modules/msgspec/default.nix @@ -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;