depot/third_party/nixpkgs/pkgs/development/python-modules/luqum/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

41 lines
787 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# dependencies
, ply
# test dependencies
, elasticsearch-dsl
}:
let
pname = "luqum";
version = "0.13.0";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jurismarches";
repo = pname;
rev = version;
hash = "sha256-lcJCLl0crCl3Y5UlWBMZJR2UtVP96gaJNRxwY9Xn7TM=";
};
propagatedBuildInputs = [
ply
];
nativeCheckInputs = [
elasticsearch-dsl
];
meta = with lib; {
description = "A lucene query parser generating ElasticSearch queries and more !";
homepage = "https://github.com/jurismarches/luqum";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}