mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
15 lines
423 B
Nix
15 lines
423 B
Nix
{ poetry2nix, python3, pkgs }:
|
|
let
|
|
inherit (pkgs.stdenv) isLinux;
|
|
env = poetry2nix.mkPoetryEnv {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
preferWheels = false;
|
|
};
|
|
in
|
|
assert !(env.python.pkgs.rpds-py.src.isWheel ||
|
|
env.python.pkgs.referencing.src.isWheel ||
|
|
env.python.pkgs.jsonschema-specifications.src.isWheel ||
|
|
env.python.pkgs.jsonschema.src.isWheel
|
|
); env
|