Commit 5eb932f8 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent 8f0791ff
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  async-timeout,
  buildPythonPackage,
  fetchFromGitLab,
  fetchpatch2,
  flit-core,
  ifaddr,
  pytestCheckHook,
@@ -12,7 +11,7 @@

buildPythonPackage rec {
  pname = "yeelight";
  version = "0.7.14";
  version = "0.7.16";
  pyproject = true;

  disabled = pythonOlder "3.7";
@@ -21,17 +20,9 @@ buildPythonPackage rec {
    owner = "stavros";
    repo = "python-yeelight";
    rev = "refs/tags/v${version}";
    hash = "sha256-BnMvRs95rsmoBa/5bp0zShgU1BBHtZzyADjbH0y1d/o=";
    hash = "sha256-WLEXTDVcSpGCmfEI31cQXGf9+4EIUCkcaeaj25f4ERU=";
  };

  patches = [
    (fetchpatch2 {
      name = "remove-future-dependency.patch";
      url = "https://gitlab.com/stavros/python-yeelight/-/commit/654f4f34e0246e65d8db02a107e2ab706de4806d.patch";
      hash = "sha256-olKpYCzIq/E7zup40Kwzwgk5iOtCubLHo9uQDOhaByQ=";
    })
  ];

  build-system = [ flit-core ];

  dependencies = [ ifaddr ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];