mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
15 lines
358 B
Nix
15 lines
358 B
Nix
{ runCommand, lib, poetry2nix, python37 }:
|
|
let
|
|
pkg = poetry2nix.mkPoetryApplication {
|
|
python = python37;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
src = lib.cleanSource ./.;
|
|
};
|
|
p = pkg.python.withPackages (ps: [ ps.numpy ps.opencv-python ]);
|
|
in
|
|
runCommand "test"
|
|
{ } ''
|
|
${p}/bin/python -c "import cv2"
|
|
touch $out
|
|
''
|