mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Filter packages based on python-versions
This commit is contained in:
parent
b1e4cdcb3d
commit
f218d27905
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ lib.makeScope pkgs.newScope (self: {
|
||||||
# Filter packages by their PEP508 markers & pyproject interpreter version
|
# Filter packages by their PEP508 markers & pyproject interpreter version
|
||||||
partitions =
|
partitions =
|
||||||
let
|
let
|
||||||
supportsPythonVersion = pkgMeta: if pkgMeta ? marker then (evalPep508 pkgMeta.marker) else true;
|
supportsPythonVersion = pkgMeta: if pkgMeta ? marker then (evalPep508 pkgMeta.marker) else true && isCompatible (poetryLib.getPythonVersion python) pkgMeta.python-versions;
|
||||||
in
|
in
|
||||||
lib.partition supportsPythonVersion poetryLock.package;
|
lib.partition supportsPythonVersion poetryLock.package;
|
||||||
compatible = partitions.right;
|
compatible = partitions.right;
|
||||||
|
|
Loading…
Add table
Reference in a new issue