diff options
author | Kira Bruneau <kira.bruneau@pm.me> | 2022-07-16 11:24:01 -0400 |
---|---|---|
committer | Kira Bruneau <kira.bruneau@pm.me> | 2022-07-16 11:27:09 -0400 |
commit | 6d7bfc948c941074801935fd259c9beb3a13bdbe (patch) | |
tree | a88ceba7fc9347aa2f67541c70cefa468c7c1344 /pkgs/development/python-modules/pydantic | |
parent | 1224622646cb038de84f6bb970bd4aab032ee2c1 (diff) |
python310Packages.pydantic: fix using lib.optionalString
Diffstat (limited to 'pkgs/development/python-modules/pydantic')
-rw-r--r-- | pkgs/development/python-modules/pydantic/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index a1f567adcd590..82ca1d29cdebd 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -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 ''; |