Expose projectDir/pyproject/poetrylock parameters in the Poetry derivation

This simplifies overriding Poetry with a different version.

Related issue: https://github.com/nix-community/poetry2nix/issues/345
This commit is contained in:
adisbladis 2021-08-11 18:41:31 -05:00
parent 87c1561b47
commit cbb6ea4995
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -1,11 +1,18 @@
{ lib, poetry2nix, python, fetchFromGitHub }:
{ lib
, poetry2nix
, python
, fetchFromGitHub
, projectDir ? ./.
, pyproject ? projectDir + "/pyproject.toml"
, poetrylock ? projectDir + "/poetry.lock"
}:
poetry2nix.mkPoetryApplication {
inherit python;
projectDir = ./.;
inherit projectDir pyproject poetrylock;
# Don't include poetry in inputs
__isBootstrap = true;