diff options
author | happysalada <raphael@megzari.com> | 2023-06-06 08:41:43 -0400 |
---|---|---|
committer | Yt <happysalada@tuta.io> | 2023-06-25 11:25:21 +0800 |
commit | 4659f76177823c3717a06640c410cae18eb82a61 (patch) | |
tree | 2bf16a18bf08bf0f40062417453fec1527a7ea6d /pkgs/development/python-modules/luqum | |
parent | e1e97d0a46ae0d5b8b4b152c4b6de23309b99b41 (diff) |
pythonPackages.luqum: init at 0.13.0
Diffstat (limited to 'pkgs/development/python-modules/luqum')
-rw-r--r-- | pkgs/development/python-modules/luqum/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/luqum/default.nix b/pkgs/development/python-modules/luqum/default.nix new file mode 100644 index 0000000000000..2c9f78fc583cb --- /dev/null +++ b/pkgs/development/python-modules/luqum/default.nix @@ -0,0 +1,41 @@ +{ 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 ]; + }; +} |