python3Packages.whoosh-compat: init at 0.3.0

This commit is contained in:
Sandro Jäckel
2026-09-21 00:29:40 +02:00
parent 4b11cb9798
commit d414ec5c0a
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hypothesis,
pytestCheckHook,
python-dateutil,
tantivy,
whoosh,
}:
buildPythonPackage (finalAttrs: {
pname = "whoosh-compat";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "stumpylog";
repo = "whoosh-compat";
tag = "v${finalAttrs.version}";
hash = "sha256-DmPrNoOGzgTDwHh1GqyTJ7PkXWu2rbWrvNj+8fnjcpE=";
};
build-system = [ hatchling ];
dependencies = [
python-dateutil
];
optional-dependencies = {
tantivy = [ tantivy ];
};
nativeCheckInputs = [
hypothesis
pytestCheckHook
whoosh
]
++ finalAttrs.passthru.optional-dependencies.tantivy;
pythonImportsCheck = [ "whoosh_compat" ];
meta = {
description = "Whoosh query-language parser emitting programmatic tantivy queries";
homepage = "https://github.com/stumpylog/whoosh-compat/";
changelog = "https://github.com/stumpylog/whoosh-compat/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
})

View File

@@ -22647,6 +22647,8 @@ self: super: with self; {
whoosh = callPackage ../development/python-modules/whoosh { };
whoosh-compat = callPackage ../development/python-modules/whoosh-compat { };
whoosh-reloaded = callPackage ../development/python-modules/whoosh-reloaded { };
widgetsnbextension = callPackage ../development/python-modules/widgetsnbextension { };