diff --git a/pkgs/development/python-modules/leanclient/default.nix b/pkgs/development/python-modules/leanclient/default.nix new file mode 100644 index 000000000000..8193c41d1585 --- /dev/null +++ b/pkgs/development/python-modules/leanclient/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + hatchling, + + # dependencies + orjson, + psutil, + tqdm, +}: + +buildPythonPackage (finalAttrs: { + pname = "leanclient"; + version = "0.9.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "oOo0oOo"; + repo = "leanclient"; + tag = "v${finalAttrs.version}"; + hash = "sha256-BmIvjFhhlXnyDZWNUZAq41TA+Q5v9UW63rljoeYl44Q="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + orjson + psutil + tqdm + ]; + + # Tests require a real Lean toolchain + doCheck = false; + + pythonImportsCheck = [ "leanclient" ]; + + meta = { + description = "Python client for the Lean theorem prover LSP"; + homepage = "https://github.com/oOo0oOo/leanclient"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ remix7531 ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 46a8625b989f..09467bc2aa23 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8585,6 +8585,8 @@ self: super: with self; { leanblueprint = callPackage ../development/python-modules/leanblueprint { }; + leanclient = callPackage ../development/python-modules/leanclient { }; + leaone-ble = callPackage ../development/python-modules/leaone-ble { }; leather = callPackage ../development/python-modules/leather { };