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

19 lines
493 B
Nix

{ poetry2nix, python38, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
python = python38;
preferWheels = true;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
overrides = poetry2nix.overrides.withDefaults (_self: super: {
threadpoolctl = super.threadpoolctl.overridePythonAttrs (_old: {
format = "wheel";
});
});
};
in
runCommand "pep600-test"
{ } ''
${env}/bin/python -c 'import open3d; print(open3d.__version__)'
touch $out
''