Don't filter sources where the projectDir is the output of a derivation

This allows for IFD style projectDir.

Closes #435
This commit is contained in:
adisbladis 2022-01-01 22:38:02 -08:00
parent a9a6bd10e3
commit f3f70444b7

View file

@ -282,7 +282,10 @@ lib.makeScope pkgs.newScope (self: {
*/
mkPoetryApplication =
{ projectDir ? null
, src ? self.cleanPythonSources { src = projectDir; }
, src ? (
# Assume that a project which is the result of a derivation is already adequately filtered
if lib.isDerivation projectDir then projectDir else self.cleanPythonSources { src = projectDir; }
)
, pyproject ? projectDir + "/pyproject.toml"
, poetrylock ? projectDir + "/poetry.lock"
, overrides ? self.defaultPoetryOverrides