python3Packages.ifcopenshell.tests: fix the eval

Without the change the eval fails as:

    $ nix build --no-link -f. python3Packages.ifcopenshell.tests
    error:
       … while evaluating the attribute 'version'
         at pkgs/development/python-modules/ifcopenshell/default.nix:185:7:
          184|     tests = {
          185|       version = testers.testVersion { command = "IfcConvert --version"; };
             |       ^
          186|     };

       … from call site
         at pkgs/development/python-modules/ifcopenshell/default.nix:185:17:
          184|     tests = {
          185|       version = testers.testVersion { command = "IfcConvert --version"; };
             |                 ^
          186|     };

       error: function 'testVersion' called without required argument 'package'
       at pkgs/build-support/testers/default.nix:66:5:
           65|   testVersion =
           66|     { package,
             |     ^
           67|       command ? "${package.meta.mainProgram or package.pname or package.name} --version",
This commit is contained in:
Sergei Trofimovich 2024-10-09 08:49:38 +01:00
parent ddcf7feb63
commit fa40906e25

View File

@ -41,6 +41,7 @@
shapely,
typing-extensions,
## additional deps for tests
ifcopenshell,
lxml,
mathutils,
networkx,
@ -182,7 +183,10 @@ buildPythonPackage rec {
passthru = {
updateScript = gitUpdater { rev-prefix = "ifcopenshell-python-"; };
tests = {
version = testers.testVersion { command = "IfcConvert --version"; };
version = testers.testVersion {
command = "IfcConvert --version";
package = ifcopenshell;
};
};
};