depot/third_party/nixpkgs/pkgs/development/python-modules/apsw/default.nix

61 lines
1.1 KiB
Nix
Raw Normal View History

{ 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; [ ];
};
}