From 65217ed1fb1d4cf3667a6ce1ca270504dc7fa585 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sun, 25 Dec 2022 17:04:43 +0100 Subject: [PATCH 11/11] ! gnu: Add homeassistant. * gnu/packages/engineering.scm (homeassistant): New variable. diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index ee224ad173..ab225f398f 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -69,9 +69,11 @@ (define-module (gnu packages engineering) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (guix build-system qt) #:use-module (gnu packages) #:use-module (gnu packages algebra) + #:use-module (gnu packages astronomy) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bash) @@ -130,6 +132,7 @@ (define-module (gnu packages engineering) #:use-module (gnu packages pretty-print) #:use-module (gnu packages protobuf) #:use-module (gnu packages python) + #:use-module (gnu packages python-build) #:use-module (gnu packages python-check) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) @@ -146,6 +149,7 @@ (define-module (gnu packages engineering) #:use-module (gnu packages tcl) #:use-module (gnu packages texinfo) #:use-module (gnu packages text-editors) + #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages tex) #:use-module (gnu packages version-control) @@ -1440,6 +1444,57 @@ (define-public harminv determines the frequencies, decay constants, amplitudes, and phases of those sinusoids.") (license license:gpl2+))) +(define-public homeassistant + (package + (name "homeassistant") + (version "2022.12.8") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/home-assistant/core") + (commit version))) + (sha256 + (base32 + "0cjw73i2ix6zpy6bagwbasyfphllqsq8hmzxkldh75hbh78h1750")))) + (build-system pyproject-build-system) + ;; TODO: Remove once python-orjson is packaged + (arguments + (list #:tests? #f ;missing orjson + #:phases #~(modify-phases %standard-phases + (delete 'sanity-check)))) + (native-inputs (list python-pytest-socket python-requests-mock python-pip)) + (propagated-inputs (list python-aiohttp + python-astral + python-async-timeout + python-atomicwrites + python-attrs + python-awesomeversion + python-bcrypt + python-certifi + python-ciso8601 + python-cryptography + python-home-assistant-bluetooth + python-httpx + python-ifaddr + python-jinja2 + python-lru-dict + python-freezegun + ;; python-orjson + python-pyjwt + python-pyyaml + python-requests + python-slugify-4 + python-typing-extensions + python-voluptuous + python-voluptuous-serialize + python-yarl)) + (home-page "https://www.home-assistant.io/") + (synopsis "home automation platform") + (description + "This package provides home automation that puts local control +and privacy first.") + (license license:asl2.0))) + (define-public guile-libctl (package (name "guile-libctl") -- 2.38.1