Merge pull request #482 from nix-community/fetched-projectdir

Don't filter sources where the projectDir is the output of a derivation
This commit is contained in:
adisbladis 2022-01-02 18:46:48 +12:00 committed by GitHub
commit 614f58a75a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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