diff --git a/pkgs/development/python-modules/luqum/default.nix b/pkgs/development/python-modules/luqum/default.nix new file mode 100644 index 000000000000..2c9f78fc583c --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dfe29399b7b8..b8b19c3784f1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5951,6 +5951,8 @@ self: super: with self; { luhn = callPackage ../development/python-modules/luhn { }; + luqum = callPackage ../development/python-modules/luqum { }; + luxor = callPackage ../development/python-modules/luxor { }; luxtronik = callPackage ../development/python-modules/luxtronik { };