commit bd98e6023418b514c77a9159eb932d705f95e594
parent b5b3941fa84211a99cfb70aa8490704cfca2595f
Author: Daniel Barlow <dan@telent.net>
Date: Tue, 24 Feb 2026 21:39:49 +0000
nix magic to package the eculocate.py client
Diffstat:
3 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/client/default.nix b/client/default.nix
@@ -0,0 +1,16 @@
+{ lib,
+ python3Packages
+}:
+
+python3Packages.buildPythonApplication rec {
+ pname = "eculocate";
+ version = "0.7";
+ pyproject = true;
+ build-system = [ python3Packages.setuptools ];
+ src = ./.;
+ dependencies = with python3Packages; [
+ pynacl
+ zeroconf
+ bleak
+ ];
+}
diff --git a/client/eculocate.py b/client/eculocate.py
@@ -1,4 +1,4 @@
-#!/data/data/com.termux/files/usr/bin/python
+#!/usr/bin/env python3
import time
import sys
diff --git a/client/setup.py b/client/setup.py
@@ -0,0 +1,9 @@
+from setuptools import setup, find_packages
+
+setup(name='Eculocate',
+ version='0.7',
+ # Modules to import from other scripts:
+ packages=find_packages(),
+ # Executables
+ scripts=["eculocate.py"],
+ )