python3Packages.apsw: fix tests, add gador as maintainer
Signed-off-by: Florian Brandes <florian.brandes@posteo.de> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
ca087b7e4f
commit
6fe8ff983e
|
@ -4,7 +4,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, sqlite
|
, sqlite
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, pytestCheckHook
|
, python
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -25,37 +25,13 @@ buildPythonPackage rec {
|
||||||
sqlite
|
sqlite
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
# Project uses custom test setup to exclude some tests by default, so using pytest
|
||||||
pytestCheckHook
|
# requires more maintenance
|
||||||
];
|
# https://github.com/rogerbinns/apsw/issues/335
|
||||||
|
checkPhase = ''
|
||||||
# Works around the following error by dropping the call to that function
|
${python.interpreter} setup.py test
|
||||||
# def print_version_info(write=write):
|
|
||||||
# > write(" Python " + sys.executable + " " + str(sys.version_info) + "\n")
|
|
||||||
# E TypeError: 'module' object is not callable
|
|
||||||
preCheck = ''
|
|
||||||
sed -i '/print_version_info(write)/d' tests.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"tests.py"
|
|
||||||
];
|
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
"testCursor"
|
|
||||||
"testdb"
|
|
||||||
"testLargeObjects"
|
|
||||||
"testLoadExtension"
|
|
||||||
"testShell"
|
|
||||||
"testVFS"
|
|
||||||
"testVFSWithWAL"
|
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
|
||||||
# This is https://github.com/rogerbinns/apsw/issues/277 but
|
|
||||||
# because we use pytestCheckHook we need to blacklist the test
|
|
||||||
# manually
|
|
||||||
"testzzForkChecker"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"apsw"
|
"apsw"
|
||||||
];
|
];
|
||||||
|
@ -64,6 +40,6 @@ buildPythonPackage rec {
|
||||||
description = "A Python wrapper for the SQLite embedded relational database engine";
|
description = "A Python wrapper for the SQLite embedded relational database engine";
|
||||||
homepage = "https://github.com/rogerbinns/apsw";
|
homepage = "https://github.com/rogerbinns/apsw";
|
||||||
license = licenses.zlib;
|
license = licenses.zlib;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ gador ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue