Unverified Commit acde4333 authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

python3Packages.temporalio: 1.19.0 -> 1.20.0 (#465753)

parents 60928c47 1cd31190
Loading
Loading
Loading
Loading
+22 −24
Original line number Diff line number Diff line
{
  lib,
  buildPackages,
  buildPythonPackage,
  cargo,
  fetchFromGitHub,
  rustPlatform,
  buildPackages,

  # build-system
  maturin,

  # dependencies
  nexusrpc,
  nix-update-script,
  nixosTests,
  protobuf,
  types-protobuf,
  typing-extensions,
  pythonOlder,
  poetry-core,
  protobuf5,
  python-dateutil,

  # nativeBuildInputs
  cargo,
  rustc,
  rustPlatform,
  setuptools,
  setuptools-rust,
  types-protobuf,
  typing-extensions,

  # passthru
  nixosTests,
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "temporalio";
  version = "1.19.0";
  version = "1.20.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "temporalio";
    repo = "sdk-python";
    rev = "refs/tags/${version}";
    hash = "sha256-KjbHm1uSsIla+kiov5qxCS4SjAS4zMk0txgS+558bgI=";
    tag = version;
    fetchSubmodules = true;
    hash = "sha256-JScwBcVkl5kAxO4zKmt1ab6b1KlhGmPSjr7O0PRu0p8=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
@@ -42,23 +45,20 @@ buildPythonPackage rec {
      src
      cargoRoot
      ;
    hash = "sha256-BBXqIRj5Rpk0P/fhLb1ugnOli0NuQgS8E9jPFR39KpI=";
    hash = "sha256-vhoXn4Aur4/VSwM2qVxOiWEI5/zAmep9ViQMGLln9PU=";
  };

  cargoRoot = "temporalio/bridge";

  build-system = [
    maturin
    poetry-core
  ];

  preBuild = ''
    export PROTOC=${buildPackages.protobuf}/bin/protoc
  '';
  env.PROTOC = "${lib.getExe buildPackages.protobuf}";

  dependencies = [
    nexusrpc
    protobuf5
    protobuf
    types-protobuf
    typing-extensions
  ]
@@ -69,8 +69,6 @@ buildPythonPackage rec {
    rustPlatform.cargoSetupHook
    rustPlatform.maturinBuildHook
    rustc
    setuptools
    setuptools-rust
  ];

  pythonImportsCheck = [