summary refs log tree commit diff
path: root/pkgs/tools/networking/apc-temp-fetch
diff options
context:
space:
mode:
authorzseri <zseri.devel@ytrizja.de>2022-03-25 23:27:39 +0100
committerzseri <zseri.devel@ytrizja.de>2022-06-09 22:24:16 +0200
commitf84dbdd78eba7a7bf955086180d223c60240a229 (patch)
tree9829cc072a18f24bfbac2f7ce244a5eb2ab280e3 /pkgs/tools/networking/apc-temp-fetch
parent9458f8031a8748c06585c84cc4177fb061aef76f (diff)
downloadnixpkgs-f84dbdd78eba7a7bf955086180d223c60240a229.tar
nixpkgs-f84dbdd78eba7a7bf955086180d223c60240a229.tar.gz
nixpkgs-f84dbdd78eba7a7bf955086180d223c60240a229.tar.bz2
nixpkgs-f84dbdd78eba7a7bf955086180d223c60240a229.tar.lz
nixpkgs-f84dbdd78eba7a7bf955086180d223c60240a229.tar.xz
nixpkgs-f84dbdd78eba7a7bf955086180d223c60240a229.tar.zst
nixpkgs-f84dbdd78eba7a7bf955086180d223c60240a229.zip
apc-temp-fetch: init at 0.0.1
Diffstat (limited to 'pkgs/tools/networking/apc-temp-fetch')
-rw-r--r--pkgs/tools/networking/apc-temp-fetch/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/networking/apc-temp-fetch/default.nix b/pkgs/tools/networking/apc-temp-fetch/default.nix
new file mode 100644
index 00000000000..89e452845e5
--- /dev/null
+++ b/pkgs/tools/networking/apc-temp-fetch/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, buildPythonApplication
+, fetchPypi
+, pythonOlder
+, requests
+}:
+
+buildPythonApplication rec {
+  pname = "apc-temp-fetch";
+  version = "0.0.1";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.6";
+
+  src = fetchPypi {
+    pname = "APC-Temp-fetch";
+    inherit version;
+    hash = "sha256-2hNrTrYQadNJWzj7/dDou+a6uI+Ksyrbru9rBqIHXaM=";
+  };
+
+  propagatedBuildInputs = [
+    requests
+  ];
+
+  pythonImportsCheck = [
+    "APC_Temp_fetch"
+  ];
+
+  meta = with lib; {
+    description = "unified temperature fetcher interface to several UPS network adapters";
+    homepage = "https://github.com/YZITE/APC_Temp_fetch";
+    license = licenses.asl20;
+    maintainers = [ maintainers.zseri ];
+  };
+}