summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-14 07:34:58 +0100
committerGitHub <noreply@github.com>2021-01-14 07:34:58 +0100
commit942f96ac55b0e642be305ca36947b92a23a5ada2 (patch)
tree2d0044267c5512d493544cfad26e15ac01ac1323 /pkgs
parentd9d3cb64ad7550ae5a436b3ce63e12a703a70131 (diff)
parent6bb763e820a86385da4e6c893404908dd29a0e3e (diff)
downloadnixpkgs-942f96ac55b0e642be305ca36947b92a23a5ada2.tar
nixpkgs-942f96ac55b0e642be305ca36947b92a23a5ada2.tar.gz
nixpkgs-942f96ac55b0e642be305ca36947b92a23a5ada2.tar.bz2
nixpkgs-942f96ac55b0e642be305ca36947b92a23a5ada2.tar.lz
nixpkgs-942f96ac55b0e642be305ca36947b92a23a5ada2.tar.xz
nixpkgs-942f96ac55b0e642be305ca36947b92a23a5ada2.tar.zst
nixpkgs-942f96ac55b0e642be305ca36947b92a23a5ada2.zip
Merge pull request #109298 from fabaff/poolsense
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/poolsense/default.nix28
-rw-r--r--pkgs/servers/home-assistant/component-packages.nix2
-rw-r--r--pkgs/top-level/python-packages.nix2
3 files changed, 31 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/poolsense/default.nix b/pkgs/development/python-modules/poolsense/default.nix
new file mode 100644
index 00000000000..0ffdf895227
--- /dev/null
+++ b/pkgs/development/python-modules/poolsense/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, aiohttp
+, buildPythonPackage
+, fetchPypi
+}:
+
+buildPythonPackage rec {
+  pname = "poolsense";
+  version = "0.0.8";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "09y4fq0gdvgkfsykpxnvmfv92dpbknnq5v82spz43ak6hjnhgcyp";
+  };
+
+  propagatedBuildInputs = [ aiohttp ];
+
+  # Project has no tests
+  doCheck = false;
+  pythonImportsCheck = [ "poolsense" ];
+
+  meta = with lib; {
+    description = "Python module to access PoolSense device";
+    homepage = "https://github.com/haemishkyd/poolsense";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix
index ed3156f0277..a3a989e8bc3 100644
--- a/pkgs/servers/home-assistant/component-packages.nix
+++ b/pkgs/servers/home-assistant/component-packages.nix
@@ -625,7 +625,7 @@
     "plum_lightpad" = ps: with ps; [ ]; # missing inputs: plumlightpad
     "pocketcasts" = ps: with ps; [ ]; # missing inputs: pycketcasts
     "point" = ps: with ps; [ aiohttp-cors ]; # missing inputs: pypoint
-    "poolsense" = ps: with ps; [ ]; # missing inputs: poolsense
+    "poolsense" = ps: with ps; [ poolsense ];
     "powerwall" = ps: with ps; [ ]; # missing inputs: tesla-powerwall
     "profiler" = ps: with ps; [ objgraph pyprof2calltree ]; # missing inputs: guppy3
     "progettihwsw" = ps: with ps; [ ]; # missing inputs: progettihwsw
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 52d2a4a4873..51456928c32 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -4868,6 +4868,8 @@ in {
 
   pooch = callPackage ../development/python-modules/pooch { };
 
+  poolsense = callPackage ../development/python-modules/poolsense { };
+
   poppler-qt5 = callPackage ../development/python-modules/poppler-qt5 {
     inherit (pkgs.qt5) qtbase;
     inherit (pkgs.libsForQt5) poppler;