From fa40906e25d3da8a14deac85e2acc995590e550b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 9 Oct 2024 08:49:38 +0100 Subject: [PATCH] python3Packages.ifcopenshell.tests: fix the eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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", --- pkgs/development/python-modules/ifcopenshell/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/ifcopenshell/default.nix b/pkgs/development/python-modules/ifcopenshell/default.nix index 0ea5ee75d618..9feccf84613e 100644 --- a/pkgs/development/python-modules/ifcopenshell/default.nix +++ b/pkgs/development/python-modules/ifcopenshell/default.nix @@ -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; + }; }; };