mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
19 lines
496 B
Nix
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
|
|
''
|