about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-10-07 12:51:24 -0400
committerGitHub <noreply@github.com>2023-10-07 12:51:24 -0400
commitfcffcdc836a428174cd80f19b9d44c1673aa82d8 (patch)
tree6aa8fe443525737c747287a85f7a2562c568fbea
parent82ead414a679661163167eaabe5f95b02969ba50 (diff)
parent24f2576315c7d59a4eed3284fec46d367a69d1be (diff)
downloadnixlib-fcffcdc836a428174cd80f19b9d44c1673aa82d8.tar
nixlib-fcffcdc836a428174cd80f19b9d44c1673aa82d8.tar.gz
nixlib-fcffcdc836a428174cd80f19b9d44c1673aa82d8.tar.bz2
nixlib-fcffcdc836a428174cd80f19b9d44c1673aa82d8.tar.lz
nixlib-fcffcdc836a428174cd80f19b9d44c1673aa82d8.tar.xz
nixlib-fcffcdc836a428174cd80f19b9d44c1673aa82d8.tar.zst
nixlib-fcffcdc836a428174cd80f19b9d44c1673aa82d8.zip
Merge pull request #259535 from fabaff/pyyardian
python311Packages.pyyardian: init at 1.1.1
-rw-r--r--pkgs/development/python-modules/pyyardian/default.nix46
-rw-r--r--pkgs/servers/home-assistant/component-packages.nix4
-rw-r--r--pkgs/top-level/python-packages.nix2
3 files changed, 51 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pyyardian/default.nix b/pkgs/development/python-modules/pyyardian/default.nix
new file mode 100644
index 000000000000..63318cbfcaef
--- /dev/null
+++ b/pkgs/development/python-modules/pyyardian/default.nix
@@ -0,0 +1,46 @@
+{ lib
+, aiohttp
+, buildPythonPackage
+, fetchFromGitHub
+, setuptools
+, pythonOlder
+, wheel
+}:
+
+buildPythonPackage rec {
+  pname = "pyyardian";
+  version = "1.1.1";
+  pyproject = true;
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "h3l1o5";
+    repo = "pyyardian";
+    rev = "refs/tags/${version}";
+    hash = "sha256-dnHHRGt3TsWJb6tzx+i1gb9hkLJYPVdCt92UGKuO6Mg=";
+  };
+
+  nativeBuildInputs = [
+    setuptools
+    wheel
+  ];
+
+  propagatedBuildInputs = [
+    aiohttp
+  ];
+
+  # Tests require network access
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "pyyardian"
+  ];
+
+  meta = with lib; {
+    description = "Module for interacting with the Yardian irrigation controller";
+    homepage = "https://github.com/h3l1o5/pyyardian";
+    license = 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 32686b0f09b2..8bbabc1db39d 100644
--- a/pkgs/servers/home-assistant/component-packages.nix
+++ b/pkgs/servers/home-assistant/component-packages.nix
@@ -4880,7 +4880,8 @@
     "yandextts" = ps: with ps; [
     ];
     "yardian" = ps: with ps; [
-    ]; # missing inputs: pyyardian
+      pyyardian
+    ];
     "yeelight" = ps: with ps; [
       aiohttp-cors
       async-upnp-client
@@ -5748,6 +5749,7 @@
     "yamaha_musiccast"
     "yandex_transport"
     "yandextts"
+    "yardian"
     "yeelight"
     "yolink"
     "youless"
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index fa09e997f701..c0bd6bfa9719 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -11755,6 +11755,8 @@ self: super: with self; {
 
   pyyaml-include = callPackage ../development/python-modules/pyyaml-include { };
 
+  pyyardian = callPackage ../development/python-modules/pyyardian { };
+
   pyzerproc = callPackage ../development/python-modules/pyzerproc { };
 
   pyzmq = callPackage ../development/python-modules/pyzmq { };