From 1bb0ec5adcf4e7d2a78474ee211e5197f191d173 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Fri, 3 Oct 2025 21:25:32 +0000 Subject: [PATCH] python3.pkgs.icalendar: build offline documentation --- .../python-modules/icalendar/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/python-modules/icalendar/default.nix b/pkgs/development/python-modules/icalendar/default.nix index c483932f3d4f..9da87158c5e0 100644 --- a/pkgs/development/python-modules/icalendar/default.nix +++ b/pkgs/development/python-modules/icalendar/default.nix @@ -9,12 +9,19 @@ tzdata, hypothesis, pytestCheckHook, + sphinxHook, + sphinx-copybutton, + pydata-sphinx-theme, }: buildPythonPackage rec { version = "6.3.1"; pname = "icalendar"; pyproject = true; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "collective"; @@ -39,6 +46,12 @@ buildPythonPackage rec { tzdata ]; + nativeBuildInputs = [ + sphinxHook + sphinx-copybutton + pydata-sphinx-theme + ]; + nativeCheckInputs = [ hypothesis pytestCheckHook