Unverified Commit 67c088da authored by Martin Weinelt's avatar Martin Weinelt Committed by emilylange
Browse files

python312Packages.msmart-ng: init at 2024.9.0



Python library for local control of Midea (and associated brands) smart
air conditioners.

Co-authored-by: default avataremilylange <git@emilylange.de>
parent 72c13c06
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,
  setuptools-scm,

  # dependencies
  httpx,
  pycryptodome,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "msmart-ng";
  version = "2024.9.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mill1000";
    repo = "midea-msmart";
    rev = version;
    hash = "sha256-djo+sINurnrt0GO8045bgNstjh+yl+CE2GJ1vWivAqY=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    httpx
    pycryptodome
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTestPaths = [
    # network access
    "msmart/tests/test_cloud.py"
  ];

  pythonImportsCheck = [ "msmart" ];

  meta = with lib; {
    changelog = "https://github.com/mill1000/midea-msmart/releases/tag/${version}";
    description = "Python library for local control of Midea (and associated brands) smart air conditioners";
    homepage = "https://github.com/mill1000/midea-msmart";
    license = licenses.mit;
    mainProgram = "msmart-ng";
    maintainers = with maintainers; [
      hexa
      emilylange
    ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7969,6 +7969,8 @@ self: super: with self; {
  msldap = callPackage ../development/python-modules/msldap { };
  msmart-ng = callPackage ../development/python-modules/msmart-ng { };
  msoffcrypto-tool = callPackage ../development/python-modules/msoffcrypto-tool { };
  msprime = callPackage ../development/python-modules/msprime { };