Unverified Commit f29a3c52 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.py-melissa-climate: init at 2.1.2 (#432717)

parents 0ee054a3 1b914b28
Loading
Loading
Loading
Loading
+58 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  aiohttp,
  requests,
  requests-futures,
  pytestCheckHook,
  mock,
}:

buildPythonPackage rec {
  pname = "py-melissa-climate";
  version = "2.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kennedyshead";
    repo = "py-melissa-climate";
    tag = "V${version}";
    hash = "sha256-Z1A0G3g8dyoG+zUxUTqI/OxczvUVy2kSI04YP0WeXso=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "setup_requires=['setuptools-markdown']," ""
  '';

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    requests
    requests-futures
  ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  disabledTests = [
    # Disable failing tests due to upstream bugs
    "test_have_connection"
    "test_send"
    "test_send_ok"
  ];

  pythonImportsCheck = [ "melissa" ];

  meta = {
    description = "API wrapper for Melissa Climate";
    homepage = "https://github.com/kennedyshead/py-melissa-climate";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -3514,7 +3514,8 @@
      ];
    "melissa" =
      ps: with ps; [
      ]; # missing inputs: py-melissa-climate
        py-melissa-climate
      ];
    "melnor" =
      ps: with ps; [
        aioesphomeapi
@@ -7358,6 +7359,7 @@
    "media_player"
    "media_source"
    "melcloud"
    "melissa"
    "melnor"
    "meraki"
    "met"
+2 −0
Original line number Diff line number Diff line
@@ -12262,6 +12262,8 @@ self: super: with self; {
  py-madvr2 = callPackage ../development/python-modules/py-madvr2 { };
  py-melissa-climate = callPackage ../development/python-modules/py-melissa-climate { };
  py-multiaddr = callPackage ../development/python-modules/py-multiaddr { };
  py-multibase = callPackage ../development/python-modules/py-multibase { };