python3Packages.dbf: fix build

Broken in 63155af44b. Failed with:

> Traceback (most recent call last):
>   File "/build/dbf-0.99.9/dbf/./test.py", line 15, in <module>
>     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.
This commit is contained in:
Andrew Marshall 2024-03-22 09:08:28 -04:00
parent 0cb727d0b5
commit 198d32f50b
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ buildPythonPackage rec {
];
checkPhase = ''
${python.interpreter} dbf/test.py
${python.interpreter} -m dbf.test
'';
pythonImportsCheck = [