mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
17 lines
402 B
Nix
17 lines
402 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"}
|
|
'';
|
|
}
|