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

python312Packages.pycontrol4: 1.1.2 -> 1.2.0 (#337965)

parents b8d0f544 c8c4f385
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;
+46 −0
Original line number Diff line number Diff line
{
  aiohttp,
  buildPythonPackage,
  fetchPypi,
  lib,
  requests,
  setuptools,
  six,
  websocket-client,
}:

buildPythonPackage rec {
  pname = "python-engineio-v3";
  version = "3.14.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-tYri/+OKIJAWWzeijFwgY9PK66lH584dvZnoBWyzaFw=";
  };

  build-system = [ setuptools ];

  dependencies = [ six ];

  optional-dependencies = {
    client = [
      requests
      websocket-client
    ];
    asyncio_client = [ aiohttp ];
  };

  pythonImportsCheck = [ "engineio_v3" ];

  # no tests on PyPI
  doCheck = false;

  meta = {
    description = "Engine.IO server";
    homepage = "https://github.com/bdraco/python-engineio-v3";
    license = lib.licenses.mit;
    longDescription = "This is a release of 3.14.2 under the “engineio_v3” namespace for old systems.";
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}
+54 −0
Original line number Diff line number Diff line
{
  aiohttp,
  buildPythonPackage,
  fetchPypi,
  lib,
  python-engineio-v3,
  requests,
  setuptools,
  six,
  websocket-client,
  websockets,
}:

buildPythonPackage rec {
  pname = "python-socketio-v4";
  version = "4.6.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-3VzLPYT4p4Uh2U4DMpxu6kq1NPZXlOqWOljLOe0bM40=";
  };

  build-system = [ setuptools ];

  dependencies = [
    python-engineio-v3
    six
  ];

  optional-dependencies = {
    client = [
      requests
      websocket-client
    ];
    asyncio_client = [
      aiohttp
      websockets
    ];
  };

  pythonImportsCheck = [ "socketio_v4" ];

  # no tests on PyPI
  doCheck = false;

  meta = {
    description = "Socket.IO server";
    homepage = "https://github.com/bdraco/python-socketio-v4";
    license = lib.licenses.mit;
    longDescription = "This is a release of 4.6.1 under the “socketio_v4” namespace for old systems.";
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -12894,6 +12894,8 @@ self: super: with self; {
  python-engineio = callPackage ../development/python-modules/python-engineio { };
  python-engineio-v3 = callPackage ../development/python-modules/python-engineio-v3 { };
  python-etcd = callPackage ../development/python-modules/python-etcd { };
  python-ev3dev2 = callPackage ../development/python-modules/python-ev3dev2 { };
@@ -13090,6 +13092,8 @@ self: super: with self; {
  python-socketio = callPackage ../development/python-modules/python-socketio { };
  python-socketio-v4 = callPackage ../development/python-modules/python-socketio-v4 { };
  python-socks = callPackage ../development/python-modules/python-socks { };
  python-sql = callPackage ../development/python-modules/python-sql { };