mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
Merge pull request #181740 from kira-bruneau/pydantic
python310Packages.pydantic: fix using lib.optionalString
This commit is contained in:
@@ -81,12 +81,12 @@ buildPythonPackage rec {
|
||||
|
||||
# Must include current directory into PYTHONPATH, since documentation
|
||||
# building process expects "import pydantic" to work.
|
||||
preBuild = lib.optionals withDocs ''
|
||||
preBuild = lib.optionalString withDocs ''
|
||||
PYTHONPATH=$PWD:$PYTHONPATH make docs
|
||||
'';
|
||||
|
||||
# Layout documentation in same way as "sphinxHook" does.
|
||||
postInstall = lib.optionals withDocs ''
|
||||
postInstall = lib.optionalString withDocs ''
|
||||
mkdir -p $out/share/doc/$name
|
||||
mv ./site $out/share/doc/$name/html
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user