mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Prefer newer versions of dependencies when there are multiple available ones
This commit is contained in:
parent
a2c8782734
commit
c19f1e414a
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ let
|
|||
supportsPythonVersion = pkgMeta: if pkgMeta ? marker then (evalPep508 pkgMeta.marker) else true;
|
||||
in
|
||||
lib.partition supportsPythonVersion poetryLock.package;
|
||||
compatible = partitions.right;
|
||||
|
||||
# Reverse the list so newer versions are iterated first
|
||||
# It's possible for multiple versions of a dependency to be compatible and we want to pick the latest one
|
||||
compatible = lib.reverseList partitions.right;
|
||||
incompatible = partitions.wrong;
|
||||
|
||||
# Create an overriden version of pythonPackages
|
||||
|
|
Loading…
Add table
Reference in a new issue