mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 17:21:39 -05:00

This adds the convenience functions withDefaults and withoutDefaults which simply wrap the provided argument in a list either with or without the default poetry overrides. Tests have also been adapted to make use of `withDefaults` where appropriate.
12 lines
290 B
Nix
12 lines
290 B
Nix
{ pkgs, lib, poetry2nix, python3 }:
|
|
|
|
poetry2nix.mkPoetryApplication {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
src = lib.cleanSource ./.;
|
|
|
|
overrides = poetry2nix.overrides.withDefaults
|
|
(import ./poetry-git-overlay.nix { inherit pkgs; });
|
|
|
|
}
|