Cannot find attribute `metadata.files error while using poetry2nix

Trying to use poetry2nix,I got this error:

nix-build  . -A lavoro --show-trace
error: while evaluating the attribute 'drvPath' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/customisation.nix:158:7:
while evaluating the attribute 'nativeBuildInputs' of the derivation 'lavoro-fabio-0.1.0' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/pkgs/development/interpreters/python/mk-python-derivation.nix:105:3:
while evaluating the attribute 'out.outPath' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/customisation.nix:151:13:
while evaluating the attribute 'buildInputs' of the derivation 'python3.7-django-compressor-2.3' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/pkgs/development/interpreters/python/mk-python-derivation.nix:105:3:
while evaluating 'chooseDevOutputs' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/attrsets.nix:474:22, called from undefined position:
while evaluating 'getManyLinuxDeps' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/pkgs/development/tools/poetry2nix/poetry2nix/lib.nix:32:22, called from /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/pkgs/development/tools/poetry2nix/poetry2nix/mk-poetry-dep.nix:73:36:
while evaluating 'hasInfix' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/strings.nix:233:21, called from /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/pkgs/development/tools/poetry2nix/poetry2nix/lib.nix:36:10:
while evaluating 'hasPrefix' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/strings.nix:196:5, called from /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/strings.nix:236:8:
while evaluating the attribute 'name' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/pkgs/development/tools/poetry2nix/poetry2nix/mk-poetry-dep.nix:58:7:
while evaluating 'getAttrFromPath' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/attrsets.nix:73:31, called from /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/pkgs/development/tools/poetry2nix/poetry2nix/default.nix:46:19:
while evaluating 'attrByPath' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/attrsets.nix:24:35, called from /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/attrsets.nix:75:8:
while evaluating 'attrByPath' at /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/attrsets.nix:24:35, called from /nix/store/jm8q0ji0lbj4w8knqkf4j2v8fr02zc25-nixos-20.03pre208857.e4134747f56/nixos/lib/attrsets.nix:29:12:
evaluation aborted with the following error message: 'cannot find attribute `metadata.files''

It looks like you’ve created the lock file with an older version of Poetry.
Poetry 1.0 has a changed lock format to facilitate poetry2nix.

Throw away your old lock file and recreate it with Poetry >1.0.