mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
python3Packages.whoosh-compat: init at 0.3.0
This commit is contained in:
51
pkgs/development/python-modules/whoosh-compat/default.nix
Normal file
51
pkgs/development/python-modules/whoosh-compat/default.nix
Normal 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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user