mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 17:21:39 -05:00
26 lines
580 B
Nix
26 lines
580 B
Nix
{ lib, poetry2nix, python3 }:
|
|
|
|
let
|
|
drv = poetry2nix.mkPoetryApplication {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
src = lib.cleanSource ./.;
|
|
overrides = [
|
|
poetry2nix.defaultPoetryOverrides
|
|
# This is also in overrides.nix but repeated for completeness
|
|
(
|
|
self: super: {
|
|
maturin = super.maturin.override {
|
|
preferWheel = true;
|
|
};
|
|
}
|
|
)
|
|
|
|
];
|
|
};
|
|
|
|
url = lib.elemAt drv.passthru.python.pkgs.maturin.src.urls 0;
|
|
|
|
in
|
|
assert lib.hasSuffix "whl" url; drv
|