From a65f5cdce8bb91f87bb8517f21cecf913c0c26e0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 25 Sep 2021 15:02:18 +0200 Subject: [PATCH 1/3] python3Packages.mbddns: init at 0.1.2 --- .../python-modules/mbddns/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/mbddns/default.nix diff --git a/pkgs/development/python-modules/mbddns/default.nix b/pkgs/development/python-modules/mbddns/default.nix new file mode 100644 index 000000000000..05137b56b004 --- /dev/null +++ b/pkgs/development/python-modules/mbddns/default.nix @@ -0,0 +1,37 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "mbddns"; + version = "0.1.2"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "thinkl33t"; + repo = "mb-ddns"; + rev = version; + sha256 = "13xzkprqk1v0zlzx4a0n9zzpnlb1g2h6pc62ms66fj72lsmjynj7"; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "mbddns" ]; + + meta = with lib; { + description = "Mythic Beasts Dynamic DNS updater"; + homepage = "https://github.com/thinkl33t/mb-ddns"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 50803af17df7..0a3c80a93b43 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4512,6 +4512,8 @@ in { inherit (self) pyface pygments numpy vtk traitsui envisage apptools pyqt5; }; + mbddns = callPackage ../development/python-modules/mbddns { }; + mccabe = callPackage ../development/python-modules/mccabe { }; mcstatus = callPackage ../development/python-modules/mcstatus { }; From b4ea8f7439dbd72ee6008a2049933b1367252cb2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 25 Sep 2021 15:03:15 +0200 Subject: [PATCH 2/3] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b1363880f9f8..d5a7de66bf03 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -551,7 +551,7 @@ "myq" = ps: with ps; [ pymyq ]; "mysensors" = ps: with ps; [ aiohttp-cors paho-mqtt pymysensors ]; "mystrom" = ps: with ps; [ aiohttp-cors python-mystrom ]; - "mythicbeastsdns" = ps: with ps; [ ]; # missing inputs: mbddns + "mythicbeastsdns" = ps: with ps; [ mbddns ]; "nad" = ps: with ps; [ nad-receiver ]; "nam" = ps: with ps; [ nettigo-air-monitor ]; "namecheapdns" = ps: with ps; [ defusedxml ]; From 36e96619438ba8a08f6080dbb53ab34aa1bb63f1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 30 Sep 2021 08:50:00 +0200 Subject: [PATCH 3/3] home-assistant: enable mythicbeastsdns tests --- pkgs/servers/home-assistant/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 27c34e10e382..cb019b92fdc7 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -518,6 +518,7 @@ in with py.pkgs; buildPythonApplication rec { "my" "myq" "mysensors" + "mythicbeastsdns" "nam" "namecheapdns" "neato"