Unverified Commit fc2ffc6f authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.awsiotsdk: init at 1.22.0, python312Packages.thinqconnect:...

python312Packages.awsiotsdk: init at 1.22.0, python312Packages.thinqconnect: init at 0.9.7-unstable-2024-09-09 (#340961)
parents c21dca75 e2ad70f2
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  lib,
  awscrt,
  boto3,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "awsiotsdk";
  version = "1.22.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "aws";
    repo = "aws-iot-device-sdk-python-v2";
    rev = "refs/tags/v${version}";
    hash = "sha256-2ZMNG+6yshEvjEpyN6uV62m11LZUrUHAzpRbm1foif0=";
  };

  pythonRelaxDeps = [ "awscrt" ];

  build-system = [ setuptools ];

  dependencies = [ awscrt ];

  nativeCheckInputs = [
    boto3
    pytestCheckHook
  ];

  disabledTestPaths = [
    # Those tests require a custom loader
    "servicetests/"
  ];

  pythonImportsCheck = [ "awsiot" ];

  meta = {
    description = "Next generation AWS IoT Client SDK for Python using the AWS Common Runtime";
    homepage = "https://github.com/aws/aws-iot-device-sdk-python-v2";
    changelog = "https://github.com/aws/aws-iot-device-sdk-python-v2/releases/tag/v${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+46 −0
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  awsiotsdk,
  buildPythonPackage,
  fetchFromGitHub,
  pyopenssl,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pythinqconnect";
  version = "0.9.7-unstable-2024-09-09";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "thinq-connect";
    repo = "pythinqconnect";
    # https://github.com/thinq-connect/pythinqconnect/issues/1
    rev = "39d535a2a5d1067a110eea37ae92002d0793b7e9";
    hash = "sha256-+nQAUqg5rB2eJgPBJJR8NsQ1O2Wb4UsbBQVPir1jyAU=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    awsiotsdk
    pyopenssl
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "thinqconnect" ];

  meta = {
    description = "Module to interacting with the LG ThinQ Connect Open API";
    homepage = "https://github.com/thinq-connect/pythinqconnect";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -1098,6 +1098,8 @@ self: super: with self; {
  awsiotpythonsdk = callPackage ../development/python-modules/awsiotpythonsdk { };
  awsiotsdk = callPackage ../development/python-modules/awsiotsdk { };
  awsipranges = callPackage ../development/python-modules/awsipranges { };
  awslambdaric = callPackage ../development/python-modules/awslambdaric { };
@@ -15407,6 +15409,8 @@ self: super: with self; {
    inherit (pkgs.darwin.apple_sdk.frameworks) Accelerate CoreFoundation CoreGraphics CoreVideo;
  };
  thinqconnect = callPackage ../development/python-modules/thinqconnect { };
  thorlabspm100 = callPackage ../development/python-modules/thorlabspm100 { };
  threadloop = callPackage ../development/python-modules/threadloop { };