mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 17:51:40 -05:00
20 lines
423 B
Nix
20 lines
423 B
Nix
{ poetry2nix, python3, runCommand }:
|
|
let
|
|
env1 = poetry2nix.mkPoetryEnv {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
};
|
|
env2 = poetry2nix.mkPoetryEnv {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
preferWheels = true;
|
|
};
|
|
in
|
|
runCommand "ruff-test"
|
|
{ } ''
|
|
${env1}/bin/ruff version
|
|
${env2}/bin/ruff version
|
|
touch $out
|
|
''
|