From d263b03d7e6b5900bfce1bc41a2117190fb4bf2b Mon Sep 17 00:00:00 2001 From: bloominstrong Date: Sat, 11 Oct 2025 12:46:47 +0000 Subject: [PATCH] nebula-lighthouse-service: init at v2.0.0 --- .../ne/nebula-lighthouse-service/package.nix | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkgs/by-name/ne/nebula-lighthouse-service/package.nix diff --git a/pkgs/by-name/ne/nebula-lighthouse-service/package.nix b/pkgs/by-name/ne/nebula-lighthouse-service/package.nix new file mode 100644 index 000000000000..e08fd3b8e385 --- /dev/null +++ b/pkgs/by-name/ne/nebula-lighthouse-service/package.nix @@ -0,0 +1,58 @@ +{ + lib, + fetchFromGitHub, + python3Packages, + nebula, +}: + +python3Packages.buildPythonApplication rec { + pname = "nebula-lighthouse-service"; + version = "2.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "manuels"; + repo = "nebula-lighthouse-service"; + tag = "v${version}"; + hash = "sha256-cRwmOGuPEYlURVbaf9AwaSmhvUzzZvATv5RGPUztnbY="; + }; + + postPatch = '' + substituteInPlace nebula_lighthouse_service/webservice.py \ + --replace-fail 'from pydantic' 'from pydantic.v1' + substituteInPlace setup.py \ + --replace-fail 'pydantic==1.10.21' 'pydantic>=2' \ + --replace-fail 'fastapi==0.116.1' 'fastapi' \ + --replace-fail 'PyYAML==6.0.2' 'PyYAML' \ + --replace-fail 'uvicorn==0.35.0' 'uvicorn' \ + --replace-fail 'python-multipart==0.0.20' 'python-multipart' + ''; + build-system = with python3Packages; [ + setuptools + wheel + ]; + + dependencies = with python3Packages; [ + fastapi + pyyaml + uvicorn + pydantic + python-multipart + nebula + ]; + + pythonImportsCheck = [ + "nebula_lighthouse_service" + ]; + + meta = { + description = "Public Nebula VPN Lighthouse Service, you can use it in case you don’t have a publicly accessible server to run your own Nebula Lighthouse"; + homepage = "https://github.com/manuels/nebula-lighthouse-service"; + license = lib.licenses.agpl3Only; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ + bloominstrong + ]; + mainProgram = "nebula-lighthouse-service"; + }; +}