~ruther/guix-local

f7b221d57048afef6ac997a5ad8fc18b34f55eec — Nicolas Graves 1 year, 2 months ago 249c30a
gnu: python-grpcio-tools: Improve style.

* gnu/packages/rpc.scm (python-grpcio-tools): Run guix style.

Signed-off-by: Andreas Enge <andreas@enge.fr>
1 files changed, 19 insertions(+), 16 deletions(-)

M gnu/packages/rpc.scm
M gnu/packages/rpc.scm => gnu/packages/rpc.scm +19 -16
@@ 283,28 283,31 @@ with the HTTP/2-based RPC framework gRPC.")
  (package
    (name "python-grpcio-tools")
    (version "1.47.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "grpcio-tools" version))
              (modules '((guix build utils)))
              (snippet
               ;; This file is auto-generated.
               '(delete-file "grpc_tools/_protoc_compiler.cpp"))
              (sha256
               (base32
                "0g3xwv55lvf5w64zb44dipwqz7729cbqc7rib77ddqab91w56jzn"))))
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "grpcio-tools" version))
       (modules '((guix build utils)))
       (snippet
        ;; This file is auto-generated.
        '(delete-file "grpc_tools/_protoc_compiler.cpp"))
       (sha256
        (base32 "0g3xwv55lvf5w64zb44dipwqz7729cbqc7rib77ddqab91w56jzn"))))
    (build-system python-build-system)
    (arguments
     (list #:phases #~(modify-phases %standard-phases
                        (add-after 'unpack 'configure
                          (lambda _
                            (setenv "GRPC_PYTHON_BUILD_WITH_CYTHON" "1"))))))
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'configure
            (lambda _
              (setenv "GRPC_PYTHON_BUILD_WITH_CYTHON" "1"))))))
    (native-inputs (list python-cython))
    (propagated-inputs (list python-grpcio python-protobuf))
    (home-page "https://grpc.io")
    (synopsis "Protobuf code generator for gRPC")
    (description "The gRPC tools for Python provide a special plugin for
generating server and client code from @file{.proto} service definitions.")
    (description
     "The gRPC tools for Python provide a special plugin for generating server
and client code from @file{.proto} service definitions.")
    (license license:asl2.0)))

(define-public apache-thrift