mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
14 lines
485 B
Nix
14 lines
485 B
Nix
{ poetry2nix, python3, runCommand }:
|
|
let
|
|
env = poetry2nix.mkPoetryEnv {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
preferWheels = true;
|
|
};
|
|
isWheelCffi = env.python.pkgs.cffi.src.isWheel;
|
|
isWheelPandas = env.python.pkgs.pandas.src.isWheel;
|
|
in
|
|
assert isWheelCffi; assert isWheelPandas; runCommand "cffi-pandas-test" { } ''
|
|
${env}/bin/python -c 'import cffi, pandas; print(cffi.__version__); print(pandas.__version__)' > $out
|
|
''
|