Unverified Commit 3b730770 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #205621 from fabaff/aranet4

python310Packages.aranet4: init at 2.1.2
parents 5e8a6d3f 7daf8fba
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{ lib
, bleak
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
}:

buildPythonPackage rec {
  pname = "aranet4";
  version = "2.1.3";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Anrijs";
    repo = "Aranet4-Python";
    rev = "refs/tags/v${version}";
    hash = "sha256-5q4eOC9iuN8pUmDsiQ7OwEXkxi4KdL+bhGVjlQlTBAg=";
  };

  propagatedBuildInputs = [
    bleak
    requests
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "aranet4"
  ];

  meta = with lib; {
    description = "Module to interact with Aranet4 devices";
    homepage = "https://github.com/Anrijs/Aranet4-Python";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@
    ]; # missing inputs: sharp_aquos_rc
    "aranet" = ps: with ps; [
      aiohttp-cors
      aranet4
      bleak-retry-connector
      bleak
      bluetooth-adapters
@@ -194,7 +195,7 @@
      pyserial
      pyudev
      sqlalchemy
    ]; # missing inputs: aranet4
    ];
    "arcam_fmj" = ps: with ps; [
      arcam-fmj
    ];
@@ -4116,6 +4117,7 @@
    "application_credentials"
    "apprise"
    "aprs"
    "aranet"
    "arcam_fmj"
    "aseko_pool_live"
    "asuswrt"
+2 −0
Original line number Diff line number Diff line
@@ -548,6 +548,8 @@ self: super: with self; {

  arabic-reshaper = callPackage ../development/python-modules/arabic-reshaper { };

  aranet4 = callPackage ../development/python-modules/aranet4 { };

  arc4 = callPackage ../development/python-modules/arc4 { };

  arcam-fmj = callPackage ../development/python-modules/arcam-fmj { };