a6d62be0d1
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, sqlite
|
|
, isPyPy
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apsw";
|
|
version = "3.36.0-r1";
|
|
format = "setuptools";
|
|
|
|
disabled = isPyPy;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rogerbinns";
|
|
repo = "apsw";
|
|
rev = version;
|
|
sha256 = "sha256-kQqJqDikvEC0+PNhQxSNTcjQc+RwvaOSGz9VL3FCetg=";
|
|
};
|
|
|
|
buildInputs = [
|
|
sqlite
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
"testCursor"
|
|
"testLoadExtension"
|
|
"testShell"
|
|
"testVFS"
|
|
"testVFSWithWAL"
|
|
"testdb"
|
|
] ++ 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 = [
|
|
"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; [ ];
|
|
};
|
|
}
|