mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
18 lines
478 B
Nix
18 lines
478 B
Nix
{ poetry2nix, python3, pkgs }:
|
|
let
|
|
inherit (pkgs.stdenv) isLinux;
|
|
env = poetry2nix.mkPoetryEnv {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
preferWheels = false;
|
|
overrides = poetry2nix.overrides.withDefaults (
|
|
_final: prev: {
|
|
markdown-it-py = prev.markdown-it-py.override {
|
|
preferWheel = isLinux;
|
|
};
|
|
}
|
|
);
|
|
};
|
|
in
|
|
assert isLinux -> env.python.pkgs.markdown-it-py.src.isWheel; env
|