poetry2nix/tests/manylinux/default.nix

16 lines
358 B
Nix
Raw Normal View History

2021-12-26 02:15:03 -08:00
{ runCommand, lib, poetry2nix, python38 }:
let
pkg = poetry2nix.mkPoetryApplication {
2021-12-26 02:15:03 -08:00
python = python38;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
src = lib.cleanSource ./.;
};
p = pkg.python.withPackages (ps: [ ps.numpy ps.opencv-python ]);
in
2020-05-19 21:06:02 +01:00
runCommand "test"
{ } ''
${p}/bin/python -c "import cv2"
touch $out
''