poetry2nix/tests/cffi-pandas-wheel/default.nix
2023-10-26 12:28:09 +13:00

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
''