python3Packages.apsw: switch to pytestCheckHook, disable failing tests

This commit is contained in:
Fabian Affolter 2021-11-30 15:40:31 +01:00 committed by Jonathan Ringer
parent 12584440b0
commit a008c576cf
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -1,8 +1,15 @@
{ lib, buildPythonPackage, fetchFromGitHub, sqlite, isPyPy }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, sqlite
, isPyPy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "apsw";
version = "3.33.0-r1";
format = "setuptools";
disabled = isPyPy;
@ -13,11 +20,35 @@ buildPythonPackage rec {
sha256 = "05mxcw1382xx22285fnv92xblqby3adfrvvalaw4dc6rzsn6kcan";
};
buildInputs = [ sqlite ];
buildInputs = [
sqlite
];
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests.py"
];
disabledTests = [
"testCursor"
"testLoadExtension"
"testShell"
"testVFS"
"testVFSWithWAL"
"testdb"
];
pythonImportsCheck = [
"apsw"
];
meta = with lib; {
description = "A Python wrapper for the SQLite embedded relational database engine";
homepage = "https://github.com/rogerbinns/apsw";
license = licenses.zlib;
maintainers = with maintainers; [ ];
};
}