mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
22 lines
415 B
Nix
22 lines
415 B
Nix
![]() |
{ lib, poetry2nix, python3, runCommand }:
|
||
|
|
||
|
let env = poetry2nix.mkPoetryEnv {
|
||
|
python = python3;
|
||
|
projectDir = ./.;
|
||
|
editablePackageSources = {
|
||
|
dep1 = null;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
in
|
||
|
lib.debug.runTests {
|
||
|
testDepFound = {
|
||
|
expected = "0\n";
|
||
|
expr = builtins.readFile (runCommand "path-deps-develop-import" { } ''
|
||
|
echo using ${env}
|
||
|
${env}/bin/python -c 'import dep1'
|
||
|
echo $? > $out
|
||
|
'');
|
||
|
};
|
||
|
}
|