mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
python313Packages.apsw: switch test suite
Signed-off-by: Florian Brandes <florian.brandes@posteo.de> Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com>
This commit is contained in:
parent
583eef75e7
commit
301d2c810d
1 changed files with 7 additions and 15 deletions
|
@ -1,10 +1,8 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
sqlite,
|
||||
}:
|
||||
|
@ -27,19 +25,13 @@ buildPythonPackage rec {
|
|||
|
||||
buildInputs = [ sqlite ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "apsw/tests.py" ];
|
||||
|
||||
disabledTests = [
|
||||
# we don't build the test extension
|
||||
"testLoadExtension"
|
||||
"testShell"
|
||||
"testVFS"
|
||||
"testVFSWithWAL"
|
||||
# no lines in errout.txt
|
||||
"testWriteUnraisable"
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "testzzForkChecker" ];
|
||||
# apsw explicitly doesn't use pytest
|
||||
# see https://github.com/rogerbinns/apsw/issues/548#issuecomment-2891633403
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
python -m apsw.tests
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "apsw" ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue