mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
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:
parent
a9a6bd10e3
commit
f3f70444b7
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue