diff --git a/pkgs/development/python-modules/mongoquery/default.nix b/pkgs/development/python-modules/mongoquery/default.nix new file mode 100644 index 000000000000..c6034ce27614 --- /dev/null +++ b/pkgs/development/python-modules/mongoquery/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, six +, isPy27 +}: + +buildPythonPackage rec { + pname = "mongoquery"; + version = "1.4.2"; + + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "bd19fc465f0aa9feb3070f144fde41fc68cf28ea32dd3b7565f7df3ab6fc0ac2"; + }; + + propagatedBuildInputs = [ + six + ]; + + pythonImportsCheck = [ + "mongoquery" + ]; + + meta = with lib; { + description = "A python implementation of mongodb queries"; + homepage = "https://github.com/kapouille/mongoquery"; + license = with licenses; [ unlicense ]; + maintainers = with maintainers; [ misuzu ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 405b9de1c9db..6a1d7ee193ba 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5886,6 +5886,8 @@ self: super: with self; { mongoengine = callPackage ../development/python-modules/mongoengine { }; + mongoquery = callPackage ../development/python-modules/mongoquery { }; + monkeyhex = callPackage ../development/python-modules/monkeyhex { }; monosat = pkgs.monosat.python {