python313Packages.pystemd: fix build
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
systemd,
|
||||
lxml,
|
||||
psutil,
|
||||
pytest,
|
||||
mock,
|
||||
pytestCheckHook,
|
||||
pkg-config,
|
||||
cython,
|
||||
}:
|
||||
@@ -44,17 +43,18 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
pytest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
# pytestCheckHook doesn't work
|
||||
pytest tests
|
||||
runHook postCheck
|
||||
# Having the source root in `sys.path` causes import issues
|
||||
preCheck = ''
|
||||
cd tests
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
"test_version.py" # Requires cstq which is not in nixpkgs
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pystemd" ];
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user