mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
20 lines
494 B
Nix
20 lines
494 B
Nix
![]() |
{ lib, poetry2nix, python3, runCommand }:
|
||
|
let
|
||
|
env = poetry2nix.mkPoetryEnv {
|
||
|
python = python3;
|
||
|
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
|
||
|
''
|