poetry2nix/tests/pep600/default.nix
2022-09-22 16:13:15 +12:00

19 lines
496 B
Nix

{ lib, 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
''