Commit c8c4f385 authored by Robert Schütz's avatar Robert Schütz
Browse files
parent d56a9acc
Loading
Loading
Loading
Loading
+7 −11
Original line number Diff line number Diff line
@@ -6,13 +6,13 @@
  setuptools,
  aiohttp,
  xmltodict,
  python-socketio,
  python-socketio-v4,
  websocket-client,
}:

buildPythonPackage rec {
  pname = "pycontrol4";
  version = "1.1.2";
  version = "1.2.0";

  disabled = pythonOlder "3.6";

@@ -22,20 +22,15 @@ buildPythonPackage rec {
    owner = "lawtancool";
    repo = "pyControl4";
    rev = "refs/tags/v${version}";
    hash = "sha256-oKKc9s3/fO7cFMjOeKtpvEwmfglxI2lxlN3EIva7zR8=";
    hash = "sha256-1gZebYseuEBI0dlXlD72f/uozNuoxHPqVsc8AWJV148=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "python-socketio>=4,<5" "python-socketio>=4"
  '';
  build-system = [ setuptools ];

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
  dependencies = [
    aiohttp
    xmltodict
    python-socketio
    python-socketio-v4
    websocket-client
  ];

@@ -50,6 +45,7 @@ buildPythonPackage rec {
  ];

  meta = with lib; {
    changelog = "https://github.com/lawtancool/pyControl4/releases/tag/v${version}";
    description = "Python 3 asyncio package for interacting with Control4 systems";
    homepage = "https://github.com/lawtancool/pyControl4";
    license = licenses.asl20;