Without the change the eval fails as:
$ nix build --no-link -f. pyamlboot.tests
error:
… while evaluating the attribute 'version'
at pkgs/by-name/py/pyamlboot/package.nix:29:3:
28|
29| passthru.tests.version = testers.testVersion {
| ^
30| package = "pyamlboot";
… while evaluating the 'name' attribute of a derivation
… while evaluating a branch condition
at lib/strings.nix:2627:3:
2626| # First detect the common case of already valid strings, to speed those up
2627| if stringLength string <= 207 && okRegex string != null
| ^
2628| then unsafeDiscardStringContext string
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: expected a set but found a string: "pyamlboot"
After fixing the eval tests started failing as `--version` hardcodes 1.0.
Co-authored-by: Nick Cao <nickcao@nichi.co>