Unverified Commit 2c5a1a10 authored by natsukium's avatar natsukium
Browse files

python312Packages.grpcio-tools: refactor

parent 369e50d8
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
buildPythonPackage rec {
  pname = "grpcio-tools";
  version = "1.65.1";
  format = "setuptools";
  pyproject = true;

  src = fetchPypi {
    pname = "grpcio_tools";
@@ -18,11 +18,6 @@ buildPythonPackage rec {
    hash = "sha256-JM/+i8kPuCN/C88kC9bHAwQlX+J7adsyYBSZoEP4cb4=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace 'protobuf>=4.21.6,<5.0dev' 'protobuf'
  '';

  outputs = [
    "out"
    "dev"
@@ -30,7 +25,14 @@ buildPythonPackage rec {

  enableParallelBuilding = true;

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  pythonRelaxDeps = [
    "protobuf"
    "grpcio"
  ];

  dependencies = [
    protobuf
    grpcio
    setuptools