From 9aa5c090c6c64932fb1d7bababcf95a9e5cdb0b6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Sep 2021 23:28:18 +0200 Subject: [PATCH 1/2] python3Packages.aioeagle: init at 1.1.0 --- .../python-modules/aioeagle/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/aioeagle/default.nix diff --git a/pkgs/development/python-modules/aioeagle/default.nix b/pkgs/development/python-modules/aioeagle/default.nix new file mode 100644 index 000000000000..8862758880c3 --- /dev/null +++ b/pkgs/development/python-modules/aioeagle/default.nix @@ -0,0 +1,39 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, xmltodict +}: + +buildPythonPackage rec { + pname = "aioeagle"; + version = "1.1.0"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "home-assistant-libs"; + repo = pname; + rev = version; + sha256 = "117nb50cxwrixif2r6fxmr9v0jxkcamm816v48hbhyc660w6xvk4"; + }; + + propagatedBuildInputs = [ + aiohttp + xmltodict + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "aioeagle" ]; + + meta = with lib; { + description = "Python library to control EAGLE-200"; + homepage = "https://github.com/home-assistant-libs/aioeagle"; + changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${version}"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 70c1760da3cf..40d6e4832760 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -265,6 +265,8 @@ in { aioeafm = callPackage ../development/python-modules/aioeafm { }; + aioeagle = callPackage ../development/python-modules/aioeagle { }; + aioemonitor = callPackage ../development/python-modules/aioemonitor { }; aioesphomeapi = callPackage ../development/python-modules/aioesphomeapi { }; From a46ac13f5b14825e89c6f21290aeb8ffb2d55c1a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 10 Sep 2021 11:30:40 +0200 Subject: [PATCH 2/2] python3Packages.ueagle: init at 0.0.2 --- .../python-modules/ueagle/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/ueagle/default.nix diff --git a/pkgs/development/python-modules/ueagle/default.nix b/pkgs/development/python-modules/ueagle/default.nix new file mode 100644 index 000000000000..fc61123377aa --- /dev/null +++ b/pkgs/development/python-modules/ueagle/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "ueagle"; + version = "0.0.2"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "jcalbert"; + repo = "uEagle"; + rev = version; + sha256 = "1hxwk5alalvmhc31y917dxsnbiwq1xci2krma3235581319xr3w7"; + }; + + propagatedBuildInputs = [ + requests + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "uEagle" ]; + + meta = with lib; { + description = "Python library Rainforest EAGLE devices"; + homepage = "https://github.com/jcalbert/uEagle"; + 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 40d6e4832760..37f70e8a889f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9078,6 +9078,8 @@ in { ufoprocessor = callPackage ../development/python-modules/ufoprocessor { }; + ueagle = callPackage ../development/python-modules/ueagle { }; + ujson = callPackage ../development/python-modules/ujson { }; ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { };