mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
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:
commit
614f58a75a
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