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

python3Packages.brevo-python: init at 1.1.2;...

python3Packages.brevo-python: init at 1.1.2; python3Packages.june-analytics-python: init at unstable-2022-07-26; python3Packages.livekit-protocol: init at 1.0.2; python3Packages.livekit-api: init at 1.0.2 (#400817)
parents 5ab83bd9 018fd627
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  certifi,
  python-dateutil,
  six,
  urllib3,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "brevo-python";
  version = "1.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "getbrevo";
    repo = "brevo-python";
    tag = "v${version}";
    hash = "sha256-XOUFyUrqVlI7Qr4uzeXr6GJuQ+QTVhsueT1xxVQMm14=";
  };

  build-system = [ setuptools ];

  dependencies = [
    certifi
    python-dateutil
    six
    urllib3
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "brevo_python" ];

  meta = {
    description = "Fully-featured Python API client to interact with Brevo";
    homepage = "https://github.com/getbrevo/brevo-python";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ soyouzpanda ];
  };
}
+50 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  dateutils,
  requests,
  monotonic,
  backoff,
  unittestCheckHook,
}:

buildPythonPackage {
  pname = "june-analytics-python";
  version = "unstable-2022-07-26";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "juneHQ";
    repo = "analytics-python";
    rev = "462b523a617fbadc016ace45e6eec5762a8ae45f";
    hash = "sha256-9IcikYQW1Q3aAyjIZw6UltD6cYFE+tBK+/EMQpRGCoQ=";
  };

  pythonRelaxDeps = true;

  build-system = [ setuptools ];

  dependencies = [
    dateutils
    requests
    monotonic
    backoff
  ];

  nativeCheckInputs = [
    unittestCheckHook
  ];

  unittestFlagsArray = [ "june" ];

  pythonImportsCheck = [ "june" ];

  meta = {
    description = "Hassle-free way to integrate analytics into any python application";
    homepage = "https://github.com/juneHQ/analytics-python";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ soyouzpanda ];
  };
}
+53 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pyjwt,
  aiohttp,
  protobuf,
  livekit-protocol,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "livekit-api";
  version = "1.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "livekit";
    repo = "python-sdks";
    tag = "api-v${version}";
    hash = "sha256-QFUCMqRshEid08IbNjyvJvJSVhYfVJRjvXjSTlNlzlU=";
  };

  pypaBuildFlags = [ "livekit-api" ];

  build-system = [ setuptools ];

  dependencies = [
    pyjwt
    aiohttp
    protobuf
    livekit-protocol
  ];

  pythonRemoveDeps = [ "types-protobuf" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pytestFlagsArray = [ "livekit-api/tests" ];

  pythonImportsCheck = [ "livekit" ];

  meta = {
    description = "LiveKit real-time and server SDKs for Python";
    homepage = "https://github.com/livekit/python-sdks/";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ soyouzpanda ];
    platforms = lib.platforms.all;
  };
}
+42 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  protobuf,
}:

buildPythonPackage rec {
  pname = "livekit-protocol";
  version = "1.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "livekit";
    repo = "python-sdks";
    tag = "protocol-v${version}";
    hash = "sha256-1La7XYTo9onQFNx84CwabPM6N6LXIn/7swH50hFQvB8=";
  };

  pypaBuildFlags = [ "livekit-protocol" ];

  build-system = [ setuptools ];

  dependencies = [
    protobuf
  ];

  pythonRemoveDeps = [ "types-protobuf" ];

  doCheck = false; # no tests

  pythonImportsCheck = [ "livekit" ];

  meta = {
    description = "LiveKit real-time and server SDKs for Python";
    homepage = "https://github.com/livekit/python-sdks/";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ soyouzpanda ];
    platforms = lib.platforms.all;
  };
}
+8 −0
Original line number Diff line number Diff line
@@ -2045,6 +2045,8 @@ self: super: with self; {
  brelpy = callPackage ../development/python-modules/brelpy { };
  brevo-python = callPackage ../development/python-modules/brevo-python { };
  brian2 = callPackage ../development/python-modules/brian2 { };
  bring-api = callPackage ../development/python-modules/bring-api { };
@@ -7187,6 +7189,8 @@ self: super: with self; {
  julius = callPackage ../development/python-modules/julius { };
  june-analytics-python = callPackage ../development/python-modules/june-analytics-python { };
  junit-xml = callPackage ../development/python-modules/junit-xml { };
  junit2html = callPackage ../development/python-modules/junit2html { };
@@ -8029,6 +8033,10 @@ self: super: with self; {
  littleutils = callPackage ../development/python-modules/littleutils { };
  livekit-api = callPackage ../development/python-modules/livekit-api { };
  livekit-protocol = callPackage ../development/python-modules/livekit-protocol { };
  livelossplot = callPackage ../development/python-modules/livelossplot { };
  livereload = callPackage ../development/python-modules/livereload { };