poetry2nix/tests/manylinux/default.nix
Tobias Pflug 08eb9637aa Remove default values and drop src from mkPoetryPyhon
Drp `poetrylock` and `pyproject` mandatory arguments
without default values and drops `src` from `mkPoetryPyhon`.

Fix test invocations with invalid arguments.
2019-12-17 12:38:34 +01:00

15 lines
356 B
Nix

{ runCommand, lib, poetry2nix, python3 }:
let
pkg = poetry2nix.mkPoetryApplication {
python = python3;
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
''