poetry2nix/tests/pep600/default.nix

20 lines
496 B
Nix
Raw Normal View History

{ lib, poetry2nix, python38, runCommand }:
2022-03-28 23:41:14 +02:00
let
env = poetry2nix.mkPoetryEnv {
python = python38;
2022-03-28 23:41:14 +02:00
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
''