The editablePackage and scriptsPackage elements of the mkPoetryEnv
function are wholly separable and really ought to be moved into the
functionality of the mkPoetryPackages function. By doing so both will
automatically be available in the mkPoetryApplication's dependencyEnv as
well.
I thought the functionality that encapsulates these might further see
potential use even outside the context of mkPoetryPackages, so I made
them top-level functions and documented them in the README.
It took me a while to figure this out, so I think it may be useful to add as a reference to future `poetry2nix` users.
Related to and inspired by #186, #60.
Also use the same source filter for path deps.
The default source filter currently filters:
- Filters gitignore (if it exists, non-recursive)
- Filters pycache/pyc files
- Uses cleanSourceFilter to filter out .git/.hg, .o/.so, editor backup files & nix result symlinks