poetry2nix/tests/source-filter/default.nix
2023-10-26 12:28:09 +13:00

17 lines
397 B
Nix

{ 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"}
'';
}