Update python-platypush

Evgeny PisemskySun Feb 16 11:33:11+0300 2025

d6cdb04

Update python-platypush

modules/cogd/packages/hardware.scm

66
77
(use-modules (guix packages)
88
             (guix gexp)
9-
             (guix build-system python)
9+
             (guix build-system pyproject)
1010
             ((gnu packages hardware) #:prefix guix:)
11-
             (gnu packages messaging))
11+
             (gnu packages messaging)
12+
             (gnu packages python-build))
1213
1314
(define-public python-usbrelay
1415
  (package
1516
    (inherit guix:usbrelay)
1617
    (name "python-usbrelay")
17-
    (build-system python-build-system)
18+
    (build-system pyproject-build-system)
1819
    (inputs (list guix:usbrelay))
20+
    (native-inputs (list python-setuptools python-wheel))
1921
    (propagated-inputs (list python-paho-mqtt))
2022
    (arguments
2123
     (list
22-
      #:phases #~(modify-phases %standard-phases
23-
                   (add-after 'unpack 'install-daemon
24-
                     (lambda _
25-
                       (install-file "usbrelayd.8"
26-
                                     (string-append #$output "/share/man/man8"))
27-
                       (install-file "usbrelayd"
28-
                                     (string-append #$output "/sbin"))
29-
                       (chmod (string-append #$output "/sbin/usbrelayd") #o555)))
30-
                   (add-after 'install-daemon 'chdir-and-set-version
31-
                     (lambda _
32-
                       (chdir "usbrelay_py")
33-
                       (substitute* "setup.py"
34-
                         (("    version = .*")
35-
                          (string-append "    version = '"
36-
                                         #$(package-version guix:usbrelay) "',\n")))
37-
                       (substitute* "src/__init__.py"
38-
                         (("__version__ = .*")
39-
                          (string-append "__version__ = \""
40-
                                         #$(package-version guix:usbrelay) "\"\n"))))))))))
24+
      #:phases
25+
      #~(modify-phases %standard-phases
26+
          (add-after 'unpack 'install-daemon
27+
            (lambda _
28+
              (install-file "usbrelayd.8"
29+
                            (string-append #$output "/share/man/man8"))
30+
              (install-file "usbrelayd"
31+
                            (string-append #$output "/sbin"))
32+
              (chmod (string-append #$output "/sbin/usbrelayd") #o555)))
33+
          (add-after 'install-daemon 'chdir
34+
            (lambda _
35+
              (chdir "usbrelay_py"))))))))

modules/cogd/packages/python-xyz.scm

5454
(define-public python-platypush
5555
  (package
5656
    (name "python-platypush")
57-
    (version "1.3.4")
57+
    (version "1.3.5")
5858
    (source
5959
     (origin
6060
       (method git-fetch)

6363
             (commit (string-append "v" version))))
6464
       (file-name (git-file-name name version))
6565
       (sha256
66-
        (base32 "0c17hq7frwqjb8rwm949wi1h2y9f4ms06dhr77akf1qdb4lhn5l7"))))
66+
        (base32 "1chd60r4misz2i368435yb6hhnm97v8kncjnchxj8mg3mglw9gy0"))))
6767
    (build-system pyproject-build-system)
6868
    (arguments
6969
     (list

9797
                             python-rsa
9898
                             python-sqlalchemy
9999
                             python-tornado
100-
                             python-urllib3-for-platypush
100+
                             python-urllib3
101101
                             python-websocket-client
102102
                             python-websockets
103103
                             python-werkzeug
104104
                             python-zeroconf
105-
                             python-zipp-3))
105+
                             python-zipp))
106106
    (home-page "https://platypush.tech/")
107107
    (synopsis "General-purpose automation framework")
108108
    (description