mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-07 02:01:40 -05:00
13 lines
330 B
Nix
13 lines
330 B
Nix
![]() |
{ poetry2nix, runCommand, python3 }:
|
||
|
let
|
||
|
env = poetry2nix.mkPoetryEnv {
|
||
|
python = python3;
|
||
|
pyproject = ./pyproject.toml;
|
||
|
poetrylock = ./poetry.lock;
|
||
|
preferWheels = true;
|
||
|
};
|
||
|
in
|
||
|
runCommand "pytesseract-test" { } ''
|
||
|
${env}/bin/python -c 'import pytesseract; print(pytesseract.get_tesseract_version())' > $out
|
||
|
''
|