From 198d32f50b7c3740bec72c43dcf4f17f48dd5d14 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Fri, 22 Mar 2024 09:08:28 -0400 Subject: [PATCH] python3Packages.dbf: fix build Broken in 63155af44bade56465b69493dcdd2a4e65921ffc. Failed with: > Traceback (most recent call last): > File "/build/dbf-0.99.9/dbf/./test.py", line 15, in > from . import * > ImportError: attempted relative import with no known parent package Relative imports only work when running as a module, not directly as a file. --- pkgs/development/python-modules/dbf/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/dbf/default.nix b/pkgs/development/python-modules/dbf/default.nix index 7858cf4a4ef6..eb64e3795937 100644 --- a/pkgs/development/python-modules/dbf/default.nix +++ b/pkgs/development/python-modules/dbf/default.nix @@ -23,7 +23,7 @@ buildPythonPackage rec { ]; checkPhase = '' - ${python.interpreter} dbf/test.py + ${python.interpreter} -m dbf.test ''; pythonImportsCheck = [