Keep using our dontBuildDocs helper function

It does the necessary overrides for stopping doc builds and excluding certain
inputs and outputs.  We can't just set `dontBuildDocs` in the derivation
because that's not a setting recognized by the Nixpkgs Python build system.
This commit is contained in:
Jean-Paul Calderone 2023-06-13 10:34:36 -04:00
parent 8421d406e9
commit 0b0e5c5c93
2 changed files with 6 additions and 5 deletions

View File

@ -7,7 +7,4 @@ pyopenssl.overrideAttrs (old: rec {
inherit pname version;
sha256 = "J2+TH1WkUufeppxxc+mE6ypEB85BPJGKo0tV+C+bi6w=";
};
# Building the docs requires sphinx which brings in a dependency on babel,
# the test suite of which fails.
dontBuildDocs = isPyPy;
})

View File

@ -29,8 +29,12 @@ in {
# Update the version of pyopenssl.
pyopenssl = self.callPackage ./pyopenssl.nix {
# Avoid infinite recursion.
inherit (super) pyopenssl;
pyopenssl =
# Building the docs requires sphinx which brings in a dependency on babel,
# the test suite of which fails.
onPyPy (dontBuildDocs { sphinx-rtd-theme = null; })
# Avoid infinite recursion.
super.pyopenssl;
};
# collections-extended is currently broken for Python 3.11 in nixpkgs but