mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
python: support version comparison of values greater than 9
This commit is contained in:
parent
38c2f51e85
commit
b6f569db2a
1 changed files with 4 additions and 4 deletions
|
@ -160,12 +160,12 @@ let
|
|||
hasElem = needle: haystack: builtins.elem needle (builtins.filter (x: builtins.typeOf x == "string") (builtins.split " " haystack));
|
||||
op = {
|
||||
"true" = x: y: true;
|
||||
"<=" = x: y: (unmarshal x) <= (unmarshal y);
|
||||
"<" = x: y: (unmarshal x) < (unmarshal y);
|
||||
"<=" = x: y: lib.versionAtLeast (unmarshal y) (unmarshal x);
|
||||
"<" = x: y: lib.versionOlder (unmarshal x) (unmarshal y);
|
||||
"!=" = x: y: x != y;
|
||||
"==" = x: y: x == y;
|
||||
">=" = x: y: (unmarshal x) >= (unmarshal y);
|
||||
">" = x: y: (unmarshal x) > (unmarshal y);
|
||||
">=" = x: y: lib.versionAtLeast (unmarshal x) (unmarshal y);
|
||||
">" = x: y: lib.versionOlder (unmarshal y) (unmarshal x);
|
||||
"~=" = v: c:
|
||||
let
|
||||
parts = builtins.splitVersion c;
|
||||
|
|
Loading…
Add table
Reference in a new issue