From 1d64dadeb07575548303cd69e214d354ef75d7bb Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Thu, 21 Mar 2024 14:21:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20nativeBuildInputs=20for=20?= =?UTF-8?q?Python=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was using a nested property combined with or, causing it to always evaluate to an empty array. --- CHANGELOG.md | 3 +++ python/docs.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01b2e3f..e30fec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Sphinx documentation can now access the nativeBuildInputs of the source package. + ## [4.1.1] - 2024-03-21 ### Fixed diff --git a/python/docs.nix b/python/docs.nix index 06263b8..765eabe 100644 --- a/python/docs.nix +++ b/python/docs.nix @@ -51,7 +51,7 @@ in nedrylandType = "documentation"; nativeBuildInputs = [ sphinx ] ++ lib.optional (sphinxTheme != null) pythonVersion.pkgs."${sphinxTheme.name}" - ++ attrs.pythonPackageArgs.nativeBuildInputs or [ ]; + ++ attrs.nativeBuildInputs or [ ]; buildInputs = (attrs.buildInputs or [ ]) ++ (attrs.propagatedBuildInputs or [ ]);