2024-04-21 15:54:59 +00:00
|
|
|
{
|
2024-09-19 14:19:46 +00:00
|
|
|
stdenv,
|
2024-04-21 15:54:59 +00:00
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools,
|
|
|
|
sqlite,
|
2021-12-26 17:43:05 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apsw";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.46.1.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rogerbinns";
|
|
|
|
repo = "apsw";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-/MMCwdd2juFbv/lrYwuO2mdWm0+v+YFn6h9CwdQMTpg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "apsw/tests.py" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# we don't build the test extension
|
|
|
|
"testLoadExtension"
|
|
|
|
"testShell"
|
|
|
|
"testVFS"
|
|
|
|
"testVFSWithWAL"
|
|
|
|
# no lines in errout.txt
|
|
|
|
"testWriteUnraisable"
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "testzzForkChecker" ];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "apsw" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/rogerbinns/apsw/blob/${src.rev}/doc/changes.rst";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python wrapper for the SQLite embedded relational database engine";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/rogerbinns/apsw";
|
|
|
|
license = licenses.zlib;
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ gador ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|