mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-08 18:51:37 -05:00
19 lines
495 B
Nix
19 lines
495 B
Nix
![]() |
{ lib, poetry2nix, python3, pkgs, runCommand }:
|
||
|
let
|
||
|
inherit (pkgs.stdenv) isLinux;
|
||
|
env = poetry2nix.mkPoetryEnv {
|
||
|
python = python3;
|
||
|
pyproject = ./pyproject.toml;
|
||
|
poetrylock = ./poetry.lock;
|
||
|
preferWheels = false;
|
||
|
overrides = poetry2nix.overrides.withDefaults (
|
||
|
self: super: {
|
||
|
markdown-it-py = super.markdown-it-py.override {
|
||
|
preferWheel = isLinux;
|
||
|
};
|
||
|
}
|
||
|
);
|
||
|
};
|
||
|
in
|
||
|
assert isLinux -> env.python.pkgs.markdown-it-py.src.isWheel; env
|