2020-12-25 13:55:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2022-09-09 14:08:57 +00:00
|
|
|
, pythonOlder
|
2020-12-25 13:55:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sqlite-fts4";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.0.3";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonw";
|
|
|
|
repo = pname;
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Ibiows3DSnzjIUv7U9tYNVnDaecBBxjXzDqxbIlNhhU=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-12-25 13:55:36 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"sqlite_fts4"
|
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Custom Python functions for working with SQLite FTS4";
|
|
|
|
homepage = "https://github.com/simonw/sqlite-fts4";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ meatcar ];
|
|
|
|
};
|
|
|
|
}
|