mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00

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
16 lines
394 B
Nix
16 lines
394 B
Nix
{ lib, poetry2nix, python3 }:
|
|
|
|
poetry2nix.mkPoetryApplication {
|
|
python = python3;
|
|
projectDir = ./.;
|
|
|
|
# Assert expected ignored files not in sources
|
|
preConfigure = let
|
|
assertNotExists = name: "! test -f ${name} || (echo ${name} exists && false)";
|
|
in
|
|
''
|
|
${assertNotExists "ignored.pyc"}
|
|
${assertNotExists "__pycache__"}
|
|
${assertNotExists "testhest"}
|
|
'';
|
|
}
|