mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Allow the package extras to contain dashes in name
This commit is contained in:
parent
a5d82ecb02
commit
90d4c8e8a6
3 changed files with 340 additions and 23 deletions
|
@ -129,7 +129,7 @@ let
|
|||
if exprs.type == "expr" then
|
||||
(
|
||||
let
|
||||
mVal = ''[a-zA-Z0-9\'"_\. ]+'';
|
||||
mVal = ''[a-zA-Z0-9\'"_\. \-]+'';
|
||||
mOp = "in|[!=<>]+";
|
||||
e = stripStr exprs.value;
|
||||
m = builtins.map stripStr (builtins.match ''^(${mVal}) *(${mOp}) *(${mVal})$'' e);
|
||||
|
|
358
tests/extras/poetry.lock
generated
358
tests/extras/poetry.lock
generated
File diff suppressed because one or more lines are too long
|
@ -8,6 +8,9 @@ authors = ["Your Name <you@example.com>"]
|
|||
python = "^3.6"
|
||||
setuptools-scm = { version = "^3.4", extras = ["toml"] }
|
||||
|
||||
# Extra with dash in the name should work
|
||||
boto3-stubs = {extras = ["cognito-idp"], version = "^1.17.82"}
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
build-backend = "poetry.masonry.api"
|
||||
|
|
Loading…
Add table
Reference in a new issue