mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
13 lines
277 B
Nix
13 lines
277 B
Nix
{ lib, poetry2nix, python39, runCommand }:
|
|
let
|
|
env = poetry2nix.mkPoetryEnv {
|
|
python = python39;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
};
|
|
in
|
|
runCommand "pytest_randomly"
|
|
{ } ''
|
|
${env}/bin/python -c 'import pytest_randomly'
|
|
touch $out
|
|
''
|