Skip to content

Commit 934d90c

Browse files
committed
fix: dependencies package PEP508 markers selection
This bug was causing all cases to fall through to the default selection by checkPythonVersions only. With this commit the local .whl test succeeds because now poetry2nix can select dependency markers for local .whl files. Resolves #1174
1 parent 0c8e4f9 commit 934d90c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

default.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ lib.makeScope pkgs.newScope (self: {
180180
partitions =
181181
let
182182
supportsPythonVersion = pkgMeta:
183-
if pkgMeta ? marker then
183+
if pkgMeta ? markers then
184184
(
185185
let
186-
marker = pyproject-nix.lib.pep508.parseMarkers pkgMeta.marker;
186+
marker = pyproject-nix.lib.pep508.parseMarkers pkgMeta.markers;
187187
in
188188
pyproject-nix.lib.pep508.evalMarkers pep508Env marker
189189
) else true && poetryLib.checkPythonVersions pyVersion pkgMeta.python-versions;

0 commit comments

Comments
 (0)