Fix dependencies

Evgeny PisemskySat Dec 14 20:15:00+0300 2024

594b8fa

Fix dependencies

modules/homeassistant-package.scm

77
(use-modules (guix packages)
88
             (guix download)
99
             (guix gexp)
10+
             (guix transformations)
1011
             (guix build-system pyproject)
1112
             (guix build-system python)
1213
             ((guix licenses) #:prefix license:)

6263
       (uri (pypi-uri "attrs" version))
6364
       (sha256
6465
        (base32 "16az31ccld8s3xj7q1iw6a402sf92lfpvcwdyq1kr6815zy7n8n9"))))
65-
    (arguments (list #:tests? #f))))
66+
    (arguments (list #:tests? #f))
67+
    (native-inputs (modify-inputs (package-native-inputs python-attrs)
68+
                     (append python-setuptools python-wheel)))))
6669
6770
(define-public python-atomicwrites-homeassistant
6871
  (package

7578
       (sha256
7679
        (base32 "0bsc3xfslmqsj02h7llnl135zdbp1cj6dn98a924arzi0qhnfsi5"))))
7780
    (build-system pyproject-build-system)
81+
    (native-inputs (list python-setuptools python-wheel))
7882
    (home-page "https://github.com/untitaker/python-atomicwrites")
7983
    (synopsis "Atomic file writes.")
8084
    (description "Atomic file writes.")

124128
       (sha256
125129
        (base32 "0dil1gi20g0ldkf1fq3x6m789ljkvsqfp20zmw5mw12ylahsq48w"))))
126130
    (build-system pyproject-build-system)
127-
    (native-inputs (list python-poetry-core))
131+
    (native-inputs (list python-poetry-core python-setuptools))
128132
    (propagated-inputs (list python-cryptography python-myst-parser
129133
                             python-sphinx python-sphinx-rtd-theme))
130134
    (home-page "https://github.com/bdraco/bluetooth-data-tools")

145149
        (base32 "1jfcq8bfzh7a8cgp7xwjvp8yry50br998zq901n41lpbmwfb0fdm"))))
146150
    (build-system pyproject-build-system)
147151
    (arguments (list #:tests? #f))
152+
    (native-inputs (list python-setuptools python-wheel))
148153
    (home-page "http://wraith-wireless.github.io/PyRIC/")
149154
    (synopsis "Python Wireless Library")
150155
    (description "Python Wireless Library.")

167172
                         python-pygments
168173
                         python-sphinx
169174
                         python-sphinx-rtd-theme
170-
                         python-twine))
175+
                         python-twine
176+
                         python-setuptools
177+
                         python-wheel))
171178
    (arguments (list #:tests? #f))
172179
    (home-page "https://github.com/ukBaz/python-btsocket")
173180
    (synopsis "Python library for BlueZ Bluetooth Management API")

318325
       (sha256
319326
        (base32 "0dbgakxdjzrcqqaivpha0icfm3dfhkxwignmyvbhyc42x18rrdbj"))))
320327
    (build-system pyproject-build-system)
321-
    (native-inputs (list python-poetry-core))
328+
    (native-inputs (list python-poetry-core python-setuptools))
322329
    (home-page "https://github.com/bluetooth-devices/dbus-fast")
323330
    (synopsis "A faster version of dbus-next")
324331
    (description "This package provides a faster version of dbus-next.")

378385
        (base32 "1kzl42rb32fy4jnl21z0irxhz11dkp4sygs1ccnvbyqmykzcc9x2"))))
379386
    (build-system pyproject-build-system)
380387
    (arguments (list #:tests? #f))
381-
    (native-inputs (list python-poetry-core python-pytest python-pytest-cov))
388+
    (native-inputs (list python-poetry-core
389+
                         python-pytest
390+
                         python-pytest-cov
391+
                         python-setuptools))
382392
    (propagated-inputs (list python-async-interrupt
383393
                             python-bleak
384394
                             python-bleak-retry-connector

402412
        (base32 "1q5xgr6678la1fh5f4k3wa94dr8x7zxh4hkaqiwjfm1xkpds4478"))))
403413
    (build-system pyproject-build-system)
404414
    (arguments (list #:tests? #f))
405-
    (native-inputs (list python-poetry-core))
415+
    (native-inputs (list python-poetry-core python-setuptools))
406416
    (propagated-inputs (list python-habluetooth))
407417
    (home-page "https://github.com/home-assistant-libs/home-assistant-bluetooth")
408418
    (synopsis "Home Assistant Bluetooth Models and Helpers")

421431
        (base32 "1m5fqjqf53m31qrl8fxp2sbwf4mvk5mbjpw2jm2x8rgpmg5by36c"))))
422432
    (build-system pyproject-build-system)
423433
    (arguments '())
424-
    (native-inputs (list python-pytest python-netifaces))))
434+
    (native-inputs (list python-pytest python-netifaces python-setuptools python-wheel))))
425435
426436
(define-public python-lru-dict
427437
  (package

434444
       (sha256
435445
        (base32 "1mqvl5rfrwhddl96nw2ca4b9d1cj242700fvv3sdss4xy616gi8k"))))
436446
    (build-system pyproject-build-system)
437-
    (native-inputs (list python-pytest))
447+
    (native-inputs (list python-pytest python-setuptools python-wheel))
438448
    (home-page "https://github.com/amitdev/lru-dict")
439449
    (synopsis "An Dict like LRU container.")
440450
    (description "An Dict like LRU container.")

484494
       (sha256
485495
        (base32 "0nxglsz03r6js9b7spcjdiawzpc5y2rb9hklrdsvf6zpwzwsjy2z"))))
486496
    (build-system pyproject-build-system)
487-
    (native-inputs (list python-poetry-core))
497+
    (native-inputs (list python-poetry-core python-setuptools))
488498
    (home-page "https://github.com/bdraco/ulid-transform")
489499
    (synopsis "Create and transform ULIDs")
490500
    (description "This library provides fast ULID transformations for python.")

514524
       (sha256
515525
        (base32 "1i57pkwzchljdmhdq31mypq6vzcfz8kxh0j42j9s70lm4dcdrb3r"))))
516526
    (build-system pyproject-build-system)
527+
    (native-inputs (list python-setuptools python-wheel))
517528
    (propagated-inputs (list python-voluptuous-for-homeassistant))
518529
    (home-page "http://github.com/balloob/voluptuous-serialize")
519530
    (synopsis "Convert voluptuous schemas to dictionaries")

545556
        (base32 "0pczn54bqd32v8zhfbjfybiza6xh1szwxy6as577dn8g23bwcfad"))))
546557
    (build-system pyproject-build-system)
547558
    (arguments (list #:tests? #f))
559+
    (native-inputs (list python-setuptools python-wheel))
548560
    (propagated-inputs (list python-aiohttp-for-homeassistant))
549561
    (home-page "https://github.com/aio-libs/aiohttp-cors")
550562
    (synopsis "CORS support for aiohttp")

583595
       (sha256
584596
        (base32 "0q7wrsm1jfgrbgjnabpmy13d92b9yra4pj26vjr0jwb23046synw"))))
585597
    (build-system pyproject-build-system)
586-
    (native-inputs (list python-poetry-core))
598+
    (native-inputs (list python-poetry-core python-setuptools))
587599
    (home-page "https://github.com/bdraco/cached-ipaddress")
588600
    (synopsis "Cache construction of ipaddress objects")
589601
    (description "Cache construction of ipaddress objects.")

614626
        (base32 "0sc8ci11di8113dd5b2j02kp8y1r8xd0gr1069hkhyi1j9i9nnr4"))))
615627
    (build-system pyproject-build-system)
616628
    (arguments (list #:tests? #f))
629+
    (native-inputs (list python-setuptools python-wheel))
617630
    (propagated-inputs (list python-aiodns
618631
                             python-async-timeout
619632
                             python-cached-ipaddress

638651
        (base32 "0qmnncqgink62q192mksl23vhv7bqck3ncbcqqfpqspsvjvj5pg3"))))
639652
    (build-system pyproject-build-system)
640653
    (arguments (list #:tests? #f))
654+
    (native-inputs (list python-setuptools python-wheel))
641655
    (home-page "https://github.com/home-assistant/intents")
642656
    (synopsis "Intents for Home Assistant")
643657
    (description "Intents for Home Assistant.")

655669
        (base32 "1waabh1fwnx1w3q1fpp0s58alqpwh72gg4zx3rgv1xs064fn9h48"))))
656670
    (build-system pyproject-build-system)
657671
    (arguments (list #:tests? #f))
672+
    (native-inputs (list python-setuptools python-wheel))
658673
    (propagated-inputs (list python-defusedxml))
659674
    (home-page "https://github.com/StevenLooman/python-didl-lite")
660675
    (synopsis "DIDL-Lite (Digital Item Declaration Language) tools for Python")

678693
      #:tests? #f
679694
      #:phases #~(modify-phases %standard-phases
680695
                   (delete 'sanity-check))))
696+
    (native-inputs (list python-setuptools python-wheel))
681697
    (propagated-inputs (list python-aiohttp-for-homeassistant
682698
                             python-async-timeout
683699
                             python-defusedxml

700716
        (base32 "13jsr2crcxv69n71p2mgyr4q7x5nwzvlkdmmna3kk7sg0l2xb0iy"))))
701717
    (build-system pyproject-build-system)
702718
    (arguments (list #:tests? #f))
719+
    (native-inputs (list python-setuptools python-wheel))
703720
    (home-page "https://github.com/znerol/py-fnvhash")
704721
    (synopsis "Pure Python FNV hash implementation")
705722
    (description "Pure Python FNV hash implementation.")

717734
        (base32 "0gbg2zsrrrzlb42xxra8wn6pf3hp6r0a3kli98mhdll1nxk72qpq"))))
718735
    (build-system pyproject-build-system)
719736
    (arguments (list #:tests? #f))
720-
    (native-inputs (list python-poetry-core))
737+
    (native-inputs (list python-poetry-core python-setuptools))
721738
    (propagated-inputs (list python-fnvhash))
722739
    (home-page "https://github.com/bdraco/fnv-hash-fast")
723740
    (synopsis "A fast version of fnv1a")

746763
                         python-pytest
747764
                         python-requests-toolbelt
748765
                         python-pytest-xdist
749-
                         python-typing-extensions))
766+
                         python-typing-extensions
767+
                         python-wheel))
750768
    (home-page "https://github.com/certbot/certbot")
751769
    (synopsis "ACME protocol implementation in Python")
752770
    (description "ACME protocol implementation in Python.")

775793
    (license license:asl2.0)))
776794
777795
(define-public python-pycognito
778-
  (package
779-
    (name "python-pycognito")
780-
    (version "2022.12.0")
781-
    (source
782-
     (origin
783-
       (method url-fetch)
784-
       (uri (pypi-uri "pycognito" version))
785-
       (sha256
786-
        (base32 "0byr2daq3xggddafgliv5k8psbx1swrkd476wwp98qiq1x10gk29"))))
787-
    (build-system pyproject-build-system)
788-
    (arguments (list #:tests? #f))
789-
    (propagated-inputs (list python-boto3
790-
                             python-envs
791-
                             python-pyjwt-for-homeassistant
792-
                             python-jose
793-
                             python-requests-for-homeassistant))
794-
    (home-page "https://github.com/pvizeli/pycognito")
795-
    (synopsis
796-
     "Python class to integrate Boto3's Cognito client so it is easy to login users. With SRP support.")
797-
    (description
798-
     "Python class to integrate Boto3's Cognito client so it is easy to login users.
796+
  ((options->transformation '((without-tests . "python-jose")))
797+
   (package
798+
     (name "python-pycognito")
799+
     (version "2022.12.0")
800+
     (source
801+
      (origin
802+
        (method url-fetch)
803+
        (uri (pypi-uri "pycognito" version))
804+
        (sha256
805+
         (base32 "0byr2daq3xggddafgliv5k8psbx1swrkd476wwp98qiq1x10gk29"))))
806+
     (build-system pyproject-build-system)
807+
     (arguments (list #:tests? #f))
808+
     (native-inputs (list python-setuptools python-wheel))
809+
     (propagated-inputs (list python-boto3
810+
                              python-envs
811+
                              python-jose
812+
                              python-requests-for-homeassistant))
813+
     (home-page "https://github.com/pvizeli/pycognito")
814+
     (synopsis
815+
      "Python class to integrate Boto3's Cognito client so it is easy to login users. With SRP support.")
816+
     (description
817+
      "Python class to integrate Boto3's Cognito client so it is easy to login users.
799818
With SRP support.")
800-
    (license license:asl2.0)))
819+
     (license license:asl2.0))))
801820
802821
(define-public python-snitun
803822
  (package

815834
                             python-async-timeout
816835
                             python-attrs-for-homeassistant
817836
                             python-cryptography))
818-
    (native-inputs (list python-pytest python-pytest-aiohttp
819-
                         python-pytest-timeout))
837+
    (native-inputs (list python-pytest
838+
                         python-pytest-aiohttp
839+
                         python-pytest-timeout
840+
                         python-setuptools
841+
                         python-wheel))
820842
    (home-page "https://github.com/NabuCasa/snitun")
821843
    (synopsis "SNI proxy with TCP multiplexer")
822844
    (description "SNI proxy with TCP multiplexer.")

834856
        (base32 "0kgmvfvr2dqlihcn8qffky0kg8xhn16zzjwzyspfq49kc5rxf3qh"))))
835857
    (build-system pyproject-build-system)
836858
    (arguments (list #:tests? #f))
859+
    (native-inputs (list python-wheel))
837860
    (propagated-inputs (list python-acme
838861
                             python-aiohttp-for-homeassistant
839862
                             python-atomicwrites-homeassistant

860883
       (sha256
861884
        (base32 "1xvi83zd0y8w1j94kwsgaa50b146rm5qxbl7vqy4293ywisms39j"))))
862885
    (build-system pyproject-build-system)
886+
    (native-inputs (list python-setuptools python-wheel))
863887
    (home-page "http://github.com/rhasspy/unicode-rbnf")
864888
    (synopsis "Rule-based number formatting using Unicode CLDR data")
865889
    (description "Rule-based number formatting using Unicode CLDR data.")

877901
        (base32 "0y87rmba8977w4gmyxbm5pqhw4rk9f2vjw41d4vghz14a8l9a95c"))))
878902
    (build-system pyproject-build-system)
879903
    (arguments (list #:tests? #f))
904+
    (native-inputs (list python-setuptools python-wheel))
880905
    (propagated-inputs (list python-importlib-resources python-pyyaml
881906
                             python-unicode-rbnf))
882907
    (home-page "http://github.com/home-assistant/hassil")

923948
       (sha256
924949
        (base32 "1f5xq720fi0bnd9w9zb1jyjm1jjrxzlj6a6s80qkmnbninlz7r7b"))))
925950
    (build-system pyproject-build-system)
951+
    (native-inputs (list python-setuptools python-wheel))
926952
    (propagated-inputs (list python-psutil))
927953
    (home-page "https://github.com/home-assistant-libs/psutil-home-assistant")
928954
    (synopsis

942968
       (sha256
943969
        (base32 "106djrg1qflmxjbpyqmdqgkph8a227gikgg1lgbn4791p6bq7vvv"))))
944970
    (build-system pyproject-build-system)
971+
    (native-inputs (list python-setuptools python-wheel))
945972
    (inputs (list libjpeg-turbo))
946973
    (propagated-inputs (list python-numpy))
947974
    (home-page "https://github.com/lilohuang/PyTurboJPEG")

964991
        (base32 "1skax7nzc76qrl5sx1c4n9kr371wk460jr2xlnqvfgxn4pxx5gpi"))))
965992
    (build-system pyproject-build-system)
966993
    (arguments (list #:tests? #f))
994+
    (native-inputs (list python-setuptools python-wheel))
967995
    (home-page "https://github.com/wiseman/py-webrtcvad")
968996
    (synopsis
969997
     "Python interface to the Google WebRTC Voice Activity Detector (VAD)")

9831011
        (base32 "0jnn71x05in3c3vh2ab0pwvh6nl9rgcichivrisaic8j6rjg6ppr"))))
9841012
    (build-system pyproject-build-system)
9851013
    (arguments (list #:tests? #f))
986-
    (native-inputs (list python-poetry-core))
1014+
    (native-inputs (list python-poetry-core python-setuptools))
9871015
    (propagated-inputs (list python-async-timeout python-ifaddr-for-homeassistant))))
9881016
1017+
(define-public python-sqlalchemy-for-homeassistant
1018+
  (package
1019+
    (inherit python-sqlalchemy-2)
1020+
    (version "2.0.15")
1021+
    (source
1022+
     (origin
1023+
       (method url-fetch)
1024+
       (uri (pypi-uri "SQLAlchemy" version))
1025+
       (sha256
1026+
        (base32 "1g4vpv2fijdg69vhsz8zx7v0zpxdb9njm7hd1vhhm1zgb630m51f"))))
1027+
    (native-inputs (modify-inputs (package-native-inputs python-sqlalchemy-2)
1028+
                     (append python-wheel)))))
1029+
9891030
;;; Dependencies for default configuration
9901031
9911032
(define-public python-pymetno

10001041
        (base32 "173z1nvf8fq6qzjj5vsm02cs12366xii69axjcrvrrd2l2p0y3ms"))))
10011042
    (build-system pyproject-build-system)
10021043
    (arguments (list #:tests? #f))
1044+
    (native-inputs (list python-setuptools python-wheel))
10031045
    (propagated-inputs (list python-aiohttp-for-homeassistant
10041046
                             python-async-timeout
10051047
                             python-xmltodict python-pytz))

10211063
        (base32 "0nwpy57ismmf6vjqdqnrxpys7487vnli975kpivn0giv4n8057qn"))))
10221064
    (build-system pyproject-build-system)
10231065
    (arguments (list #:tests? #f))
1066+
    (native-inputs (list python-setuptools python-wheel))
10241067
    (propagated-inputs (list python-typing-extensions))
10251068
    (home-page "https://github.com/Fatal1ty/mashumaro")
10261069
    (synopsis "Fast and well tested serialization library")

10381081
       (sha256
10391082
        (base32 "1fjwz9x81wpfn22j96ck49l3nb2hn19qfgv44441h8qrpgsjky03"))))
10401083
    (build-system pyproject-build-system)
1041-
    (native-inputs (list python-poetry-core))
1084+
    (native-inputs (list python-poetry-core python-setuptools))
10421085
    (home-page "https://github.com/litl/backoff")
10431086
    (synopsis "Function decoration for backoff and retry")
10441087
    (description "Function decoration for backoff and retry.")

10561099
        (base32 "17jr9nmgz2q0zxlhdln6mq9rf0x5mqsxnakbfvb4fva7q7zsmh4s"))))
10571100
    (build-system pyproject-build-system)
10581101
    (arguments (list #:tests? #f))
1059-
    (native-inputs (list python-poetry-core))
1102+
    (native-inputs (list python-poetry-core python-setuptools))
10601103
    (propagated-inputs (list python-aiodns
10611104
                             python-aiohttp-for-homeassistant
10621105
                             python-awesomeversion

10831126
       (sha256
10841127
        (base32 "166lgvz9xvf279alyba1xmi56q37231ybdb2s1jsqwpmzhwf6qpk"))))
10851128
    (build-system pyproject-build-system)
1129+
    (native-inputs (list python-setuptools python-wheel))
10861130
    (propagated-inputs (list python-cryptography))
10871131
    (home-page "https://github.com/pvizeli/securetar")
10881132
    (synopsis "Python module to handle tarfile backups")

11161160
                (("pyOpenSSL==23.2.0")
11171161
                 "pyOpenSSL>=23.2.0")
11181162
                (("orjson==3.9.1")
1119-
                 "orjson>=3.9.1")))))))
1163+
                 "orjson>=3.9.1")
1164+
                (("async-timeout==4.0.2")
1165+
                 "async-timeout>=4.0.2")
1166+
                (("httpx==0.24.1")
1167+
                 "httpx>=0.24.1")))))))
11201168
    (propagated-inputs (list python-aiohttp-for-homeassistant    ; aiohttp==3.8.5
11211169
                             python-astral-for-homeassistant     ; astral==2.2
1122-
                             python-async-timeout                ; async-timeout==4.0.2
1170+
                             python-async-timeout                ; async-timeout==4.0.2 (relaxed)
11231171
                             python-attrs-for-homeassistant      ; attrs==22.2.0
11241172
                             python-atomicwrites-homeassistant   ; atomicwrites-homeassistant==1.4.1
11251173
                             python-awesomeversion               ; awesomeversion==22.9.0
11261174
                             python-bcrypt                       ; bcrypt==4.0.1 (outdated, relaxed)
11271175
                             python-certifi                      ; certifi>=2021.5.30
11281176
                             python-ciso8601-for-homeassistant   ; ciso8601==2.3.0
1129-
                             python-httpx                        ; httpx==0.24.1
1177+
                             python-httpx                        ; httpx==0.24.1 (relaxed)
11301178
                             python-home-assistant-bluetooth     ; home-assistant-bluetooth==1.10.0
11311179
                             python-ifaddr-for-homeassistant     ; ifaddr==0.2.0
11321180
                             python-jinja2                       ; Jinja2==3.1.2

11471195
11481196
                             python-aiohttp-cors               ; aiohttp-cors==0.7.0
11491197
                             python-aiodiscover                ; aiodiscover==1.4.16
1150-
                             python-sqlalchemy-2               ; SQLAlchemy==2.0.15 (2.0.27)
1198+
                             python-sqlalchemy-for-homeassistant ; SQLAlchemy==2.0.15
11511199
                             python-home-assistant-intents     ; home-assistant-intents==2023.6.28
11521200
                             python-async-upnp-client          ; async-upnp-client==0.33.2
11531201
                             python-fnv-hash-fast              ; fnv-hash-fast==0.3.1

11561204
                             python-hassil                     ; hassil==1.0.6
11571205
                             python-home-assistant-frontend    ; home-assistant-frontend==20230705.1
11581206
                             python-janus                      ; janus==1.0.0
1159-
                             python-mutagen                    ; mutagen==1.46.0 (1.45.1)
1207+
                             python-mutagen                    ; mutagen==1.46.0 (1.47.0)
11601208
                             python-paho-mqtt                  ; paho-mqtt==1.6.1
11611209
                             python-pillow                     ; Pillow==9.5.0 (9.2.0)
11621210
                             python-psutil-home-assistant      ; psutil-home-assistant==0.0.1

11731221
                             python-gtts      ; gTTS==2.2.4 (2.3.1)
11741222
                             python-securetar ; securetar==2023.3.0
11751223
1176-
                             python-tzdata))
1224+
                             python-tzdata
1225+
                             python-wheel))
11771226
    (home-page "https://www.home-assistant.io/")
11781227
    (synopsis "Open-source home automation platform")
11791228
    (description "Open source home automation that puts local control and privacy first.