Add modules

Evgeny PisemskySat Dec 07 21:45:35+0300 2024

afdbb5a

Add modules

.guix-authorizations unknown status 1

1+
;;; SPDX-FileCopyrightText: 2024 Evgeny Pisemsky <mail@pisemsky.site>
2+
;;;
3+
;;; SPDX-License-Identifier: GPL-3.0-or-later
4+
5+
(authorizations
6+
 (version 0)
7+
 (("15FF37F790C1BADB35B3752BE3D3B72AB5733021"
8+
   (name "pisemsky"))))
9+
10+
;; Local Variables:
11+
;; mode: scheme
12+
;; End:

.guix-channel unknown status 1

1+
;;; SPDX-FileCopyrightText: 2024 Evgeny Pisemsky <mail@pisemsky.site>
2+
;;;
3+
;;; SPDX-License-Identifier: GPL-3.0-or-later
4+
5+
(channel
6+
 (version 0)
7+
 (directory "modules"))
8+
9+
;; Local Variables:
10+
;; mode: scheme
11+
;; End:

LICENSES/GPL-3.0-or-later.txt unknown status 1

1+
GNU GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
Copyright ?? 2007 Free Software Foundation, Inc. <https://fsf.org/>
5+
6+
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
7+
8+
Preamble
9+
10+
The GNU General Public License is a free, copyleft license for software and other kinds of works.
11+
12+
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
13+
14+
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
15+
16+
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
17+
18+
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
19+
20+
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
21+
22+
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
23+
24+
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
25+
26+
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
27+
28+
The precise terms and conditions for copying, distribution and modification follow.
29+
30+
TERMS AND CONDITIONS
31+
32+
0. Definitions.
33+
34+
???This License??? refers to version 3 of the GNU General Public License.
35+
36+
???Copyright??? also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
37+
38+
???The Program??? refers to any copyrightable work licensed under this License. Each licensee is addressed as ???you???. ???Licensees??? and ???recipients??? may be individuals or organizations.
39+
40+
To ???modify??? a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a ???modified version??? of the earlier work or a work ???based on??? the earlier work.
41+
42+
A ???covered work??? means either the unmodified Program or a work based on the Program.
43+
44+
To ???propagate??? a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
45+
46+
To ???convey??? a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
47+
48+
An interactive user interface displays ???Appropriate Legal Notices??? to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
49+
50+
1. Source Code.
51+
The ???source code??? for a work means the preferred form of the work for making modifications to it. ???Object code??? means any non-source form of a work.
52+
53+
A ???Standard Interface??? means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
54+
55+
The ???System Libraries??? of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A ???Major Component???, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
56+
57+
The ???Corresponding Source??? for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
58+
59+
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
60+
61+
The Corresponding Source for a work in source code form is that same work.
62+
63+
2. Basic Permissions.
64+
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
65+
66+
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
67+
68+
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
69+
70+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
71+
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
72+
73+
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
74+
75+
4. Conveying Verbatim Copies.
76+
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
77+
78+
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
79+
80+
5. Conveying Modified Source Versions.
81+
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
82+
83+
     a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
84+
85+
     b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to ???keep intact all notices???.
86+
87+
     c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
88+
89+
     d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
90+
91+
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an ???aggregate??? if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
92+
93+
6. Conveying Non-Source Forms.
94+
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
95+
96+
     a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
97+
98+
     b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
99+
100+
     c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
101+
102+
     d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
103+
104+
     e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
105+
106+
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
107+
108+
A ???User Product??? is either (1) a ???consumer product???, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, ???normally used??? refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
109+
110+
???Installation Information??? for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
111+
112+
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
113+
114+
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
115+
116+
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
117+
118+
7. Additional Terms.
119+
???Additional permissions??? are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
120+
121+
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
122+
123+
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
124+
125+
     a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
126+
127+
     b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
128+
129+
     c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
130+
131+
     d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
132+
133+
     e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
134+
135+
     f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
136+
137+
All other non-permissive additional terms are considered ???further restrictions??? within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
138+
139+
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
140+
141+
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
142+
143+
8. Termination.
144+
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
145+
146+
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
147+
148+
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
149+
150+
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
151+
152+
9. Acceptance Not Required for Having Copies.
153+
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
154+
155+
10. Automatic Licensing of Downstream Recipients.
156+
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
157+
158+
An ???entity transaction??? is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
159+
160+
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
161+
162+
11. Patents.
163+
A ???contributor??? is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's ???contributor version???.
164+
165+
A contributor's ???essential patent claims??? are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, ???control??? includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
166+
167+
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
168+
169+
In the following three paragraphs, a ???patent license??? is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To ???grant??? such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
170+
171+
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. ???Knowingly relying??? means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
172+
173+
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
174+
175+
A patent license is ???discriminatory??? if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
176+
177+
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
178+
179+
12. No Surrender of Others' Freedom.
180+
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
181+
182+
13. Use with the GNU Affero General Public License.
183+
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
184+
185+
14. Revised Versions of this License.
186+
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
187+
188+
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License ???or any later version??? applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
189+
190+
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
191+
192+
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
193+
194+
15. Disclaimer of Warranty.
195+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM ???AS IS??? WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
196+
197+
16. Limitation of Liability.
198+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
199+
200+
17. Interpretation of Sections 15 and 16.
201+
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
202+
203+
END OF TERMS AND CONDITIONS
204+
205+
How to Apply These Terms to Your New Programs
206+
207+
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
208+
209+
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the ???copyright??? line and a pointer to where the full notice is found.
210+
211+
     <one line to give the program's name and a brief idea of what it does.>
212+
     Copyright (C) <year>  <name of author>
213+
214+
     This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
215+
216+
     This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
217+
218+
     You should have received a copy of the GNU General Public License along with this program.  If not, see <https://www.gnu.org/licenses/>.
219+
220+
Also add information on how to contact you by electronic and paper mail.
221+
222+
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
223+
224+
     <program>  Copyright (C) <year>  <name of author>
225+
     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
226+
     This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
227+
228+
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an ???about box???.
229+
230+
You should also get your employer (if you work as a programmer) or school, if any, to sign a ???copyright disclaimer??? for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
231+
232+
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.

modules/homeassistant-package.scm unknown status 1

1+
;;; SPDX-FileCopyrightText: 2024 Evgeny Pisemsky <mail@pisemsky.site>
2+
;;;
3+
;;; SPDX-License-Identifier: GPL-3.0-or-later
4+
5+
(define-module (homeassistant-package))
6+
7+
(use-modules (guix packages)
8+
             (guix download)
9+
             (guix gexp)
10+
             (guix build-system pyproject)
11+
             (guix build-system python)
12+
             ((guix licenses) #:prefix license:)
13+
             (gnu packages admin)
14+
             (gnu packages astronomy)
15+
             (gnu packages check)
16+
             (gnu packages databases)
17+
             (gnu packages image)
18+
             (gnu packages messaging)
19+
             (gnu packages music)
20+
             (gnu packages python-build)
21+
             (gnu packages python-check)
22+
             (gnu packages python-crypto)
23+
             (gnu packages python-web)
24+
             (gnu packages python-xyz)
25+
             (gnu packages sphinx)
26+
             (gnu packages time)
27+
             (gnu packages xml))
28+
29+
;;; Dependencies for empty configuration
30+
31+
(define-public python-aiohttp-for-homeassistant
32+
  (package
33+
    (inherit python-aiohttp)
34+
    (version "3.8.5")
35+
    (source
36+
     (origin
37+
       (method url-fetch)
38+
       (uri (pypi-uri "aiohttp" version))
39+
       (sha256
40+
        (base32 "1g6hqz8w18sc37npdl6wl8gfa0knmycarisajkqxniy15k2jwmdr"))))))
41+
42+
(define-public python-astral-for-homeassistant
43+
  (package
44+
    (inherit python-astral)
45+
    (name "python-astral")
46+
    (version "2.2")
47+
    (source
48+
     (origin
49+
       (method url-fetch)
50+
       (uri (pypi-uri "astral" version))
51+
       (sha256
52+
        (base32 "1gkggdibccmdy9glymw3kbrkzm6svvsg0lk56hhy92y4smkrj7g4"))))
53+
    (native-inputs (list poetry python-freezegun))))
54+
55+
(define-public python-attrs-for-homeassistant
56+
  (package
57+
    (inherit python-attrs)
58+
    (version "22.2.0")
59+
    (source
60+
     (origin
61+
       (method url-fetch)
62+
       (uri (pypi-uri "attrs" version))
63+
       (sha256
64+
        (base32 "16az31ccld8s3xj7q1iw6a402sf92lfpvcwdyq1kr6815zy7n8n9"))))
65+
    (arguments (list #:tests? #f))))
66+
67+
(define-public python-atomicwrites-homeassistant
68+
  (package
69+
    (name "python-atomicwrites-homeassistant")
70+
    (version "1.4.1")
71+
    (source
72+
     (origin
73+
       (method url-fetch)
74+
       (uri (pypi-uri "atomicwrites-homeassistant" version))
75+
       (sha256
76+
        (base32 "0bsc3xfslmqsj02h7llnl135zdbp1cj6dn98a924arzi0qhnfsi5"))))
77+
    (build-system pyproject-build-system)
78+
    (home-page "https://github.com/untitaker/python-atomicwrites")
79+
    (synopsis "Atomic file writes.")
80+
    (description "Atomic file writes.")
81+
    (license license:expat)))
82+
83+
(define-public python-awesomeversion
84+
  (package
85+
    (name "python-awesomeversion")
86+
    (version "22.9.0")
87+
    (source
88+
     (origin
89+
       (method url-fetch)
90+
       (uri (pypi-uri "awesomeversion" version))
91+
       (sha256
92+
        (base32 "0zkzl6kpl19rp98rszm63pqzb5imvc6iamp1ljr107p86g9r0h9g"))))
93+
    (build-system pyproject-build-system)
94+
    (arguments (list #:tests? #f))
95+
    (native-inputs (list python-poetry-core))
96+
    (home-page "https://github.com/ludeeus/awesomeversion")
97+
    (synopsis
98+
     "One version package to rule them all, One version package to find them, One version package to bring them all, and in the darkness bind them.")
99+
    (description
100+
     "One version package to rule them all, One version package to find them, One
101+
version package to bring them all, and in the darkness bind them.")
102+
    (license license:expat)))
103+
104+
(define-public python-ciso8601-for-homeassistant
105+
  (package
106+
    (inherit python-ciso8601)
107+
    (version "2.3.0")
108+
    (source
109+
     (origin
110+
       (method url-fetch)
111+
       (uri (pypi-uri "ciso8601" version))
112+
       (sha256
113+
        (base32 "0049dkv86w5q8j97ilagc15njnrn9mvxi55ciqsw7gnqhvbzpqqr"))))
114+
    (arguments (list #:tests? #f))))
115+
116+
(define-public python-bluetooth-data-tools
117+
  (package
118+
    (name "python-bluetooth-data-tools")
119+
    (version "1.20.0")
120+
    (source
121+
     (origin
122+
       (method url-fetch)
123+
       (uri (pypi-uri "bluetooth_data_tools" version))
124+
       (sha256
125+
        (base32 "0dil1gi20g0ldkf1fq3x6m789ljkvsqfp20zmw5mw12ylahsq48w"))))
126+
    (build-system pyproject-build-system)
127+
    (native-inputs (list python-poetry-core))
128+
    (propagated-inputs (list python-cryptography python-myst-parser
129+
                             python-sphinx python-sphinx-rtd-theme))
130+
    (home-page "https://github.com/bdraco/bluetooth-data-tools")
131+
    (synopsis "Tools for converting bluetooth data and packets")
132+
    (description
133+
     "This package provides tools for converting bluetooth data and packets.")
134+
    (license license:asl2.0)))
135+
136+
(define-public python-pyric
137+
  (package
138+
    (name "python-pyric")
139+
    (version "0.1.6.3")
140+
    (source
141+
     (origin
142+
       (method url-fetch)
143+
       (uri (pypi-uri "PyRIC" version))
144+
       (sha256
145+
        (base32 "1jfcq8bfzh7a8cgp7xwjvp8yry50br998zq901n41lpbmwfb0fdm"))))
146+
    (build-system pyproject-build-system)
147+
    (arguments (list #:tests? #f))
148+
    (home-page "http://wraith-wireless.github.io/PyRIC/")
149+
    (synopsis "Python Wireless Library")
150+
    (description "Python Wireless Library.")
151+
    (license license:gpl3+)))
152+
153+
(define-public python-btsocket
154+
  (package
155+
    (name "python-btsocket")
156+
    (version "0.3.0")
157+
    (source
158+
     (origin
159+
       (method url-fetch)
160+
       (uri (pypi-uri "btsocket" version))
161+
       (sha256
162+
        (base32 "03bs2i582kdqfvj8yrnzjhllkvbzr9r9r9gfz3cz10zq1zg9b93y"))))
163+
    (build-system pyproject-build-system)
164+
    (native-inputs (list python-bumpversion
165+
                         python-coverage
166+
                         python-pycodestyle
167+
                         python-pygments
168+
                         python-sphinx
169+
                         python-sphinx-rtd-theme
170+
                         python-twine))
171+
    (arguments (list #:tests? #f))
172+
    (home-page "https://github.com/ukBaz/python-btsocket")
173+
    (synopsis "Python library for BlueZ Bluetooth Management API")
174+
    (description "Python library for @code{BlueZ} Bluetooth Management API.")
175+
    (license license:expat)))
176+
177+
(define-public python-bluetooth-auto-recovery
178+
  (package
179+
    (name "python-bluetooth-auto-recovery")
180+
    (version "1.4.2")
181+
    (source
182+
     (origin
183+
       (method url-fetch)
184+
       (uri (pypi-uri "bluetooth_auto_recovery" version))
185+
       (sha256
186+
        (base32 "1n5panr753sm6mbw103a8abmbal4fy79p67dy1p7rc34337vliki"))))
187+
    (build-system pyproject-build-system)
188+
    (arguments (list #:tests? #f))
189+
    (native-inputs (list python-poetry-core python-pytest python-pytest-cov))
190+
    (propagated-inputs (list python-async-timeout
191+
                             python-bluetooth-adapters
192+
                             python-btsocket
193+
                             python-myst-parser
194+
                             python-pyric
195+
                             python-sphinx
196+
                             python-sphinx-rtd-theme
197+
                             python-usb-devices))
198+
    (home-page "https://github.com/bluetooth-devices/bluetooth-auto-recovery")
199+
    (synopsis "Recover bluetooth adapters that are in an stuck state")
200+
    (description "Recover bluetooth adapters that are in an stuck state.")
201+
    (license license:expat)))
202+
203+
(define-public python-usb-devices
204+
  (package
205+
    (name "python-usb-devices")
206+
    (version "0.4.5")
207+
    (source
208+
     (origin
209+
       (method url-fetch)
210+
       (uri (pypi-uri "usb_devices" version))
211+
       (sha256
212+
        (base32 "0p8rbqs06g0l39wnhk7snqydighc98j7czsvqk393irbvw37cp4v"))))
213+
    (build-system pyproject-build-system)
214+
    (native-inputs (list python-pytest python-pytest-cov python-poetry-core))
215+
    (arguments (list #:tests? #f))
216+
    (home-page "https://github.com/bluetooth-devices/usb-devices")
217+
    (synopsis "Tools for mapping, describing, and resetting USB devices")
218+
    (description
219+
     "This package provides tools for mapping, describing, and resetting USB devices.")
220+
    (license license:expat)))
221+
222+
(define-public python-uart-devices
223+
  (package
224+
    (name "python-uart-devices")
225+
    (version "0.1.0")
226+
    (source
227+
     (origin
228+
       (method url-fetch)
229+
       (uri (pypi-uri "uart_devices" version))
230+
       (sha256
231+
        (base32 "1cfrg9b6jjh7pmz03iz50yjsrvlzvii59bcy7k0s9hhbpb0440vz"))))
232+
    (build-system pyproject-build-system)
233+
    (native-inputs (list python-pytest
234+
                         python-pytest-cov
235+
                         python-poetry-core))
236+
    (arguments (list #:tests? #f))
237+
    (home-page "https://github.com/bdraco/uart-devices")
238+
    (synopsis "UART Devices for Linux")
239+
    (description "UART Devices for Linux.")
240+
    (license license:expat)))
241+
242+
(define-public python-aiooui
243+
  (package
244+
    (name "python-aiooui")
245+
    (version "0.1.6")
246+
    (source
247+
     (origin
248+
       (method url-fetch)
249+
       (uri (pypi-uri "aiooui" version))
250+
       (sha256
251+
        (base32 "0r5wjfzpk0hbarsi3k13widm93lvwcsi8kgpyql1znzyfzpjv307"))))
252+
    (build-system python-build-system)
253+
    (native-inputs (list python-wheel))
254+
    (home-page "https://github.com/bluetooth-devices/aiooui")
255+
    (synopsis "Async OUI lookups")
256+
    (description "Async OUI lookups.")
257+
    (license license:expat)))
258+
259+
(define-public python-bluetooth-adapters
260+
  (package
261+
    (name "python-bluetooth-adapters")
262+
    (version "0.19.4")
263+
    (source
264+
     (origin
265+
       (method url-fetch)
266+
       (uri (pypi-uri "bluetooth_adapters" version))
267+
       (sha256
268+
        (base32 "1wq6l3yc3wf8z8qmbvx3pjwki32wirxmjjk7g34jy2lriw233yqq"))))
269+
    (build-system pyproject-build-system)
270+
    (arguments (list #:tests? #f))
271+
    (native-inputs (list python-pytest python-pytest-cov python-poetry-core))
272+
    (propagated-inputs (list python-aiooui
273+
                             python-async-timeout
274+
                             python-bleak
275+
                             python-dbus-fast
276+
                             python-myst-parser
277+
                             python-sphinx
278+
                             python-sphinx-rtd-theme
279+
                             python-uart-devices
280+
                             python-usb-devices))
281+
    (home-page "https://github.com/bluetooth-devices/bluetooth-adapters")
282+
    (synopsis "Tools to enumerate and find Bluetooth Adapters")
283+
    (description
284+
     "This package provides tools to enumerate and find Bluetooth Adapters.")
285+
    (license license:asl2.0)))
286+
287+
(define-public python-bleak-retry-connector
288+
  (package
289+
    (name "python-bleak-retry-connector")
290+
    (version "3.5.0")
291+
    (source
292+
     (origin
293+
       (method url-fetch)
294+
       (uri (pypi-uri "bleak_retry_connector" version))
295+
       (sha256
296+
        (base32 "15ilr96dpsz5p8kkfjqwa8124xp362dwvyybjmfy0yzz2d8s45pn"))))
297+
    (build-system pyproject-build-system)
298+
    (arguments (list #:tests? #f))
299+
    (native-inputs (list python-pytest python-pytest-cov python-poetry-core))
300+
    (propagated-inputs (list python-async-timeout python-bleak
301+
                             python-bluetooth-adapters python-dbus-fast))
302+
    (home-page "https://github.com/bluetooth-devices/bleak-retry-connector")
303+
    (synopsis
304+
     "A connector for Bleak Clients that handles transient connection failures")
305+
    (description
306+
     "This package provides a connector for Bleak Clients that handles transient
307+
connection failures.")
308+
    (license license:expat)))
309+
310+
(define-public python-dbus-fast
311+
  (package
312+
    (name "python-dbus-fast")
313+
    (version "2.24.0")
314+
    (source
315+
     (origin
316+
       (method url-fetch)
317+
       (uri (pypi-uri "dbus_fast" version))
318+
       (sha256
319+
        (base32 "0dbgakxdjzrcqqaivpha0icfm3dfhkxwignmyvbhyc42x18rrdbj"))))
320+
    (build-system pyproject-build-system)
321+
    (native-inputs (list python-poetry-core))
322+
    (home-page "https://github.com/bluetooth-devices/dbus-fast")
323+
    (synopsis "A faster version of dbus-next")
324+
    (description "This package provides a faster version of dbus-next.")
325+
    (license license:expat)))
326+
327+
(define-public python-bleak
328+
  (package
329+
    (name "python-bleak")
330+
    (version "0.22.2")
331+
    (source
332+
     (origin
333+
       (method url-fetch)
334+
       (uri (pypi-uri "bleak" version))
335+
       (sha256
336+
        (base32 "1zp9hslsl8q77wbcdm08va8fc325nazy2lhnmbfffhyq9c7hq089"))))
337+
    (build-system pyproject-build-system)
338+
    (arguments (list #:tests? #f))
339+
    (native-inputs (list python-poetry-core
340+
                         python-pytest
341+
                         python-hypothesis))
342+
    (propagated-inputs (list python-async-timeout
343+
                        python-dbus-fast
344+
                        python-typing-extensions))
345+
    (home-page "https://github.com/hbldh/bleak")
346+
    (synopsis "Bluetooth Low Energy platform Agnostic Klient")
347+
    (description "Bluetooth Low Energy platform Agnostic Klient.")
348+
    (license license:expat)))
349+
350+
(define-public python-async-interrupt
351+
  (package
352+
    (name "python-async-interrupt")
353+
    (version "1.2.0")
354+
    (source
355+
     (origin
356+
       (method url-fetch)
357+
       (uri (pypi-uri "async_interrupt" version))
358+
       (sha256
359+
        (base32 "1ma3xldbgd5xmvhrdjx72mklaimj4ggm4gx4bva1ll3q4jg5aiyi"))))
360+
    (build-system pyproject-build-system)
361+
    (arguments (list #:tests? #f))
362+
    (native-inputs (list python-poetry-core python-pytest python-pytest-cov))
363+
    (home-page "https://github.com/bdraco/async_interrupt")
364+
    (synopsis "Context manager to raise an exception when a future is done")
365+
    (description
366+
     "Context manager to raise an exception when a future is done.")
367+
    (license license:asl2.0)))
368+
369+
(define-public python-habluetooth
370+
  (package
371+
    (name "python-habluetooth")
372+
    (version "3.4.0")
373+
    (source
374+
     (origin
375+
       (method url-fetch)
376+
       (uri (pypi-uri "habluetooth" version))
377+
       (sha256
378+
        (base32 "1kzl42rb32fy4jnl21z0irxhz11dkp4sygs1ccnvbyqmykzcc9x2"))))
379+
    (build-system pyproject-build-system)
380+
    (arguments (list #:tests? #f))
381+
    (native-inputs (list python-poetry-core python-pytest python-pytest-cov))
382+
    (propagated-inputs (list python-async-interrupt
383+
                             python-bleak
384+
                             python-bleak-retry-connector
385+
                             python-bluetooth-adapters
386+
                             python-bluetooth-auto-recovery
387+
                             python-bluetooth-data-tools))
388+
    (home-page "https://github.com/bluetooth-devices/habluetooth")
389+
    (synopsis "High availability Bluetooth")
390+
    (description "High availability Bluetooth.")
391+
    (license license:asl2.0)))
392+
393+
(define-public python-home-assistant-bluetooth
394+
  (package
395+
    (name "python-home-assistant-bluetooth")
396+
    (version "1.10.0")
397+
    (source
398+
     (origin
399+
       (method url-fetch)
400+
       (uri (pypi-uri "home_assistant_bluetooth" version))
401+
       (sha256
402+
        (base32 "1q5xgr6678la1fh5f4k3wa94dr8x7zxh4hkaqiwjfm1xkpds4478"))))
403+
    (build-system pyproject-build-system)
404+
    (arguments (list #:tests? #f))
405+
    (native-inputs (list python-poetry-core))
406+
    (propagated-inputs (list python-habluetooth))
407+
    (home-page "https://github.com/home-assistant-libs/home-assistant-bluetooth")
408+
    (synopsis "Home Assistant Bluetooth Models and Helpers")
409+
    (description "Home Assistant Bluetooth Models and Helpers.")
410+
    (license license:asl2.0)))
411+
412+
(define-public python-ifaddr-for-homeassistant
413+
  (package
414+
    (inherit python-ifaddr)
415+
    (version "0.2.0")
416+
    (source
417+
     (origin
418+
       (method url-fetch)
419+
       (uri (pypi-uri "ifaddr" version))
420+
       (sha256
421+
        (base32 "1m5fqjqf53m31qrl8fxp2sbwf4mvk5mbjpw2jm2x8rgpmg5by36c"))))
422+
    (build-system pyproject-build-system)
423+
    (arguments '())
424+
    (native-inputs (list python-pytest python-netifaces))))
425+
426+
(define-public python-lru-dict
427+
  (package
428+
    (name "python-lru-dict")
429+
    (version "1.2.0")
430+
    (source
431+
     (origin
432+
       (method url-fetch)
433+
       (uri (pypi-uri "lru-dict" version))
434+
       (sha256
435+
        (base32 "1mqvl5rfrwhddl96nw2ca4b9d1cj242700fvv3sdss4xy616gi8k"))))
436+
    (build-system pyproject-build-system)
437+
    (native-inputs (list python-pytest))
438+
    (home-page "https://github.com/amitdev/lru-dict")
439+
    (synopsis "An Dict like LRU container.")
440+
    (description "An Dict like LRU container.")
441+
    (license license:expat)))
442+
443+
(define-public python-pyjwt-for-homeassistant
444+
  (package
445+
    (inherit python-pyjwt)
446+
    (version "2.7.0")
447+
    (source
448+
     (origin
449+
       (method url-fetch)
450+
       (uri (pypi-uri "PyJWT" version))
451+
       (sha256
452+
        (base32 "0x70qffax798pbkcn3yd9kh99yzqzlss1ra98cnilp18qjis8v5x"))))))
453+
454+
(define-public python-slugify-for-homeassistant
455+
  (package
456+
    (inherit python-slugify)
457+
    (version "4.0.1")
458+
    (source
459+
     (origin
460+
       (method url-fetch)
461+
       (uri (pypi-uri "python-slugify" version))
462+
       (sha256
463+
        (base32 "0w22fapghmzk3xdasc4dn7h8sl58l08d1h5zbf72dh80drv1g9b9"))))))
464+
465+
(define-public python-requests-for-homeassistant
466+
  (package
467+
    (inherit python-requests)
468+
    (version "2.31.0")
469+
    (source
470+
     (origin
471+
       (method url-fetch)
472+
       (uri (pypi-uri "requests" version))
473+
       (sha256
474+
        (base32 "1qfidaynsrci4wymrw3srz8v1zy7xxpcna8sxpm91mwqixsmlb4l"))))))
475+
476+
(define-public python-ulid-transform
477+
  (package
478+
    (name "python-ulid-transform")
479+
    (version "0.7.2")
480+
    (source
481+
     (origin
482+
       (method url-fetch)
483+
       (uri (pypi-uri "ulid_transform" version))
484+
       (sha256
485+
        (base32 "0nxglsz03r6js9b7spcjdiawzpc5y2rb9hklrdsvf6zpwzwsjy2z"))))
486+
    (build-system pyproject-build-system)
487+
    (native-inputs (list python-poetry-core))
488+
    (home-page "https://github.com/bdraco/ulid-transform")
489+
    (synopsis "Create and transform ULIDs")
490+
    (description "This library provides fast ULID transformations for python.")
491+
    (license license:expat)))
492+
493+
(define-public python-voluptuous-for-homeassistant
494+
  (package
495+
    (inherit python-voluptuous)
496+
    (version "0.13.1")
497+
    (source
498+
     (origin
499+
       (method url-fetch)
500+
       (uri (pypi-uri "voluptuous" version))
501+
       (sha256
502+
        (base32 "08wp91dn1ibsmjd0660hpldq5ii9xqmg9h6l2k5p6rqxc0h1rlz8"))))
503+
    (native-inputs
504+
     (list python-pytest))))
505+
506+
(define-public python-voluptuous-serialize
507+
  (package
508+
    (name "python-voluptuous-serialize")
509+
    (version "2.6.0")
510+
    (source
511+
     (origin
512+
       (method url-fetch)
513+
       (uri (pypi-uri "voluptuous-serialize" version))
514+
       (sha256
515+
        (base32 "1i57pkwzchljdmhdq31mypq6vzcfz8kxh0j42j9s70lm4dcdrb3r"))))
516+
    (build-system pyproject-build-system)
517+
    (propagated-inputs (list python-voluptuous-for-homeassistant))
518+
    (home-page "http://github.com/balloob/voluptuous-serialize")
519+
    (synopsis "Convert voluptuous schemas to dictionaries")
520+
    (description "Convert voluptuous schemas to dictionaries.")
521+
    (license license:asl2.0)))
522+
523+
(define-public python-yarl-for-homeassistant
524+
  (package
525+
    (inherit python-yarl)
526+
    (version "1.9.2")
527+
    (source
528+
     (origin
529+
       (method url-fetch)
530+
       (uri (pypi-uri "yarl" version))
531+
       (sha256
532+
        (base32 "0w9mh8851i7chig0vab5djcxyz5p2y9zxay207c0cz2qkx5rvaq4"))))))
533+
534+
;;; Dependencies from homeassistant/package_constraints.txt
535+
536+
(define-public python-aiohttp-cors
537+
  (package
538+
    (name "python-aiohttp-cors")
539+
    (version "0.7.0")
540+
    (source
541+
     (origin
542+
       (method url-fetch)
543+
       (uri (pypi-uri "aiohttp_cors" version))
544+
       (sha256
545+
        (base32 "0pczn54bqd32v8zhfbjfybiza6xh1szwxy6as577dn8g23bwcfad"))))
546+
    (build-system pyproject-build-system)
547+
    (arguments (list #:tests? #f))
548+
    (propagated-inputs (list python-aiohttp-for-homeassistant))
549+
    (home-page "https://github.com/aio-libs/aiohttp-cors")
550+
    (synopsis "CORS support for aiohttp")
551+
    (description "CORS support for aiohttp.")
552+
    (license license:asl2.0)))
553+
554+
(define-public python-pyroute2
555+
  (package
556+
    (name "python-pyroute2")
557+
    (version "0.7.5")
558+
    (source
559+
     (origin
560+
       (method url-fetch)
561+
       (uri (pypi-uri "pyroute2" version))
562+
       (sha256
563+
        (base32 "1r8bbkz70r108vnhlh44aamb4qb7bc670ylk1bgmfcslwaijzsqy"))))
564+
    (build-system python-build-system)
565+
    (arguments
566+
     (list
567+
      #:tests? #f
568+
      #:phases #~(modify-phases %standard-phases
569+
                   (delete 'sanity-check))))
570+
    (home-page "https://github.com/svinota/pyroute2")
571+
    (synopsis "Python Netlink library")
572+
    (description "Python Netlink library.")
573+
    (license (list license:gpl2+ license:asl2.0))))
574+
575+
(define-public python-cached-ipaddress
576+
  (package
577+
    (name "python-cached-ipaddress")
578+
    (version "0.5.0")
579+
    (source
580+
     (origin
581+
       (method url-fetch)
582+
       (uri (pypi-uri "cached_ipaddress" version))
583+
       (sha256
584+
        (base32 "0q7wrsm1jfgrbgjnabpmy13d92b9yra4pj26vjr0jwb23046synw"))))
585+
    (build-system pyproject-build-system)
586+
    (native-inputs (list python-poetry-core))
587+
    (home-page "https://github.com/bdraco/cached-ipaddress")
588+
    (synopsis "Cache construction of ipaddress objects")
589+
    (description "Cache construction of ipaddress objects.")
590+
    (license license:expat)))
591+
592+
(define-public python-dnspython-for-homeassistant
593+
  (package
594+
    (inherit python-dnspython)
595+
    (version "2.3.0")
596+
    (source
597+
     (origin
598+
       (method url-fetch)
599+
       (uri (pypi-uri "dnspython" version))
600+
       (sha256
601+
        (base32 "1fa0lm90sibdzwi0hk5b47k68fhjpvh68vgg287ffsxl7sq34ki2"))))
602+
    (build-system pyproject-build-system)
603+
    (native-inputs (list python-poetry-core))))
604+
605+
(define-public python-aiodiscover
606+
  (package
607+
    (name "python-aiodiscover")
608+
    (version "1.4.16")
609+
    (source
610+
     (origin
611+
       (method url-fetch)
612+
       (uri (pypi-uri "aiodiscover" version))
613+
       (sha256
614+
        (base32 "0sc8ci11di8113dd5b2j02kp8y1r8xd0gr1069hkhyi1j9i9nnr4"))))
615+
    (build-system pyproject-build-system)
616+
    (arguments (list #:tests? #f))
617+
    (propagated-inputs (list python-aiodns
618+
                             python-async-timeout
619+
                             python-cached-ipaddress
620+
                             python-ifaddr-for-homeassistant
621+
                             python-netifaces
622+
                             python-pyroute2
623+
                             python-dnspython-for-homeassistant))
624+
    (home-page "https://github.com/bdraco/aiodiscover")
625+
    (synopsis "Discover hosts by arp and ptr lookup")
626+
    (description "Discover hosts by arp and ptr lookup.")
627+
    (license license:asl2.0)))
628+
629+
(define-public python-home-assistant-intents
630+
  (package
631+
    (name "python-home-assistant-intents")
632+
    (version "2023.6.28")
633+
    (source
634+
     (origin
635+
       (method url-fetch)
636+
       (uri (pypi-uri "home-assistant-intents" version))
637+
       (sha256
638+
        (base32 "0qmnncqgink62q192mksl23vhv7bqck3ncbcqqfpqspsvjvj5pg3"))))
639+
    (build-system pyproject-build-system)
640+
    (arguments (list #:tests? #f))
641+
    (home-page "https://github.com/home-assistant/intents")
642+
    (synopsis "Intents for Home Assistant")
643+
    (description "Intents for Home Assistant.")
644+
    (license license:cc-by4.0)))
645+
646+
(define-public python-didl-lite
647+
  (package
648+
    (name "python-didl-lite")
649+
    (version "1.3.2")
650+
    (source
651+
     (origin
652+
       (method url-fetch)
653+
       (uri (pypi-uri "python-didl-lite" version))
654+
       (sha256
655+
        (base32 "1waabh1fwnx1w3q1fpp0s58alqpwh72gg4zx3rgv1xs064fn9h48"))))
656+
    (build-system pyproject-build-system)
657+
    (arguments (list #:tests? #f))
658+
    (propagated-inputs (list python-defusedxml))
659+
    (home-page "https://github.com/StevenLooman/python-didl-lite")
660+
    (synopsis "DIDL-Lite (Digital Item Declaration Language) tools for Python")
661+
    (description
662+
     "DIDL-Lite (Digital Item Declaration Language) tools for Python.")
663+
    (license license:asl2.0)))
664+
665+
(define-public python-async-upnp-client
666+
  (package
667+
    (name "python-async-upnp-client")
668+
    (version "0.33.2")
669+
    (source
670+
     (origin
671+
       (method url-fetch)
672+
       (uri (pypi-uri "async_upnp_client" version))
673+
       (sha256
674+
        (base32 "1lr6baj06yyqzfcsj66dgy9i6xjhh3xpbpa33yq7a8g197n51jik"))))
675+
    (build-system pyproject-build-system)
676+
    (arguments
677+
     (list
678+
      #:tests? #f
679+
      #:phases #~(modify-phases %standard-phases
680+
                   (delete 'sanity-check))))
681+
    (propagated-inputs (list python-aiohttp-for-homeassistant
682+
                             python-async-timeout
683+
                             python-defusedxml
684+
                             python-didl-lite
685+
                             python-voluptuous-for-homeassistant))
686+
    (home-page "https://github.com/StevenLooman/async_upnp_client")
687+
    (synopsis "Async UPnP Client")
688+
    (description "Async U@code{PnP} Client.")
689+
    (license license:asl2.0)))
690+
691+
(define-public python-fnvhash
692+
  (package
693+
    (name "python-fnvhash")
694+
    (version "0.1.0")
695+
    (source
696+
     (origin
697+
       (method url-fetch)
698+
       (uri (pypi-uri "fnvhash" version))
699+
       (sha256
700+
        (base32 "13jsr2crcxv69n71p2mgyr4q7x5nwzvlkdmmna3kk7sg0l2xb0iy"))))
701+
    (build-system pyproject-build-system)
702+
    (arguments (list #:tests? #f))
703+
    (home-page "https://github.com/znerol/py-fnvhash")
704+
    (synopsis "Pure Python FNV hash implementation")
705+
    (description "Pure Python FNV hash implementation.")
706+
    (license license:expat)))
707+
708+
(define-public python-fnv-hash-fast
709+
  (package
710+
    (name "python-fnv-hash-fast")
711+
    (version "0.3.1")
712+
    (source
713+
     (origin
714+
       (method url-fetch)
715+
       (uri (pypi-uri "fnv_hash_fast" version))
716+
       (sha256
717+
        (base32 "0gbg2zsrrrzlb42xxra8wn6pf3hp6r0a3kli98mhdll1nxk72qpq"))))
718+
    (build-system pyproject-build-system)
719+
    (arguments (list #:tests? #f))
720+
    (native-inputs (list python-poetry-core))
721+
    (propagated-inputs (list python-fnvhash))
722+
    (home-page "https://github.com/bdraco/fnv-hash-fast")
723+
    (synopsis "A fast version of fnv1a")
724+
    (description "This package provides a fast version of fnv1a.")
725+
    (license license:expat)))
726+
727+
(define-public python-acme
728+
  (package
729+
    (name "python-acme")
730+
    (version "1.31.0")
731+
    (source
732+
     (origin
733+
       (method url-fetch)
734+
       (uri (pypi-uri "acme" version))
735+
       (sha256
736+
        (base32 "0lzwfrsrph66ix9warpb428q37v3nk48ldv5v26w608iz9i35qgm"))))
737+
    (build-system pyproject-build-system)
738+
    (propagated-inputs (list python-cryptography
739+
                             python-josepy
740+
                             python-pyopenssl
741+
                             python-pyrfc3339
742+
                             python-pytz
743+
                             python-requests-for-homeassistant
744+
                             python-setuptools))
745+
    (native-inputs (list python-importlib-resources
746+
                         python-pytest
747+
                         python-requests-toolbelt
748+
                         python-pytest-xdist
749+
                         python-typing-extensions))
750+
    (home-page "https://github.com/certbot/certbot")
751+
    (synopsis "ACME protocol implementation in Python")
752+
    (description "ACME protocol implementation in Python.")
753+
    (license license:asl2.0)))
754+
755+
(define-public python-envs
756+
  (package
757+
    (name "python-envs")
758+
    (version "1.4")
759+
    (source
760+
     (origin
761+
       (method url-fetch)
762+
       (uri (pypi-uri "envs" version))
763+
       (sha256
764+
        (base32 "160358zskyg6g606lndjcv7yd2nv5f7ca14y55lds72xk333b14x"))))
765+
    (build-system pyproject-build-system)
766+
    (arguments (list #:tests? #f))
767+
    (native-inputs (list python-poetry-core python-pytest python-pytest-cov))
768+
    (propagated-inputs (list python-click python-jinja2 python-terminaltables))
769+
    (home-page #f)
770+
    (synopsis
771+
     "Easy access of environment variables from Python with support for strings, booleans, list, tuples, and dicts.")
772+
    (description
773+
     "Easy access of environment variables from Python with support for strings,
774+
booleans, list, tuples, and dicts.")
775+
    (license license:asl2.0)))
776+
777+
(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.
799+
With SRP support.")
800+
    (license license:asl2.0)))
801+
802+
(define-public python-snitun
803+
  (package
804+
    (name "python-snitun")
805+
    (version "0.35.0")
806+
    (source
807+
     (origin
808+
       (method url-fetch)
809+
       (uri (pypi-uri "snitun" version))
810+
       (sha256
811+
        (base32 "0kyqzghh273fy81jrxqgzl0qj8wnn11iz7ay5396hg67ap6blcnb"))))
812+
    (build-system pyproject-build-system)
813+
    (arguments (list #:tests? #f))
814+
    (propagated-inputs (list python-aiohttp-for-homeassistant
815+
                             python-async-timeout
816+
                             python-attrs-for-homeassistant
817+
                             python-cryptography))
818+
    (native-inputs (list python-pytest python-pytest-aiohttp
819+
                         python-pytest-timeout))
820+
    (home-page "https://github.com/NabuCasa/snitun")
821+
    (synopsis "SNI proxy with TCP multiplexer")
822+
    (description "SNI proxy with TCP multiplexer.")
823+
    (license license:gpl3)))
824+
825+
(define-public python-hass-nabucasa
826+
  (package
827+
    (name "python-hass-nabucasa")
828+
    (version "0.69.0")
829+
    (source
830+
     (origin
831+
       (method url-fetch)
832+
       (uri (pypi-uri "hass-nabucasa" version))
833+
       (sha256
834+
        (base32 "0kgmvfvr2dqlihcn8qffky0kg8xhn16zzjwzyspfq49kc5rxf3qh"))))
835+
    (build-system pyproject-build-system)
836+
    (arguments (list #:tests? #f))
837+
    (propagated-inputs (list python-acme
838+
                             python-aiohttp-for-homeassistant
839+
                             python-atomicwrites-homeassistant
840+
                             python-attrs-for-homeassistant
841+
                             python-ciso8601-for-homeassistant
842+
                             python-cryptography
843+
                             python-pycognito
844+
                             python-pyjwt-for-homeassistant
845+
                             python-snitun
846+
                             python-requests-toolbelt))
847+
    (home-page "https://github.com/NabuCasa/hass-nabucasa")
848+
    (synopsis "Home Assistant cloud integration by Nabu Casa, Inc.")
849+
    (description "Home Assistant cloud integration by Nabu Casa, Inc.")
850+
    (license license:gpl3)))
851+
852+
(define-public python-unicode-rbnf
853+
  (package
854+
    (name "python-unicode-rbnf")
855+
    (version "1.2.0")
856+
    (source
857+
     (origin
858+
       (method url-fetch)
859+
       (uri (pypi-uri "unicode_rbnf" version))
860+
       (sha256
861+
        (base32 "1xvi83zd0y8w1j94kwsgaa50b146rm5qxbl7vqy4293ywisms39j"))))
862+
    (build-system pyproject-build-system)
863+
    (home-page "http://github.com/rhasspy/unicode-rbnf")
864+
    (synopsis "Rule-based number formatting using Unicode CLDR data")
865+
    (description "Rule-based number formatting using Unicode CLDR data.")
866+
    (license license:expat)))
867+
868+
(define-public python-hassil
869+
  (package
870+
    (name "python-hassil")
871+
    (version "1.0.6")
872+
    (source
873+
     (origin
874+
       (method url-fetch)
875+
       (uri (pypi-uri "hassil" version))
876+
       (sha256
877+
        (base32 "0y87rmba8977w4gmyxbm5pqhw4rk9f2vjw41d4vghz14a8l9a95c"))))
878+
    (build-system pyproject-build-system)
879+
    (arguments (list #:tests? #f))
880+
    (propagated-inputs (list python-importlib-resources python-pyyaml
881+
                             python-unicode-rbnf))
882+
    (home-page "http://github.com/home-assistant/hassil")
883+
    (synopsis "The Home Assistant Intent Language parser")
884+
    (description "The Home Assistant Intent Language parser.")
885+
    (license license:asl2.0)))
886+
887+
(define-public python-home-assistant-frontend
888+
  (package
889+
    (name "python-home-assistant-frontend")
890+
    (version "20230705.1")
891+
    (source (origin
892+
              (method url-fetch)
893+
              (uri (string-append
894+
                    "https://files.pythonhosted.org/packages/"
895+
                    "ef/87/69818138c1aca6f1039da07874cf13a32159283252225fe062585dcc42ef/"
896+
                    "home_assistant_frontend-20230705.1-py3-none-any.whl"))
897+
              (sha256
898+
               (base32 "0slnqlkh0hvnhm6mw0k6lddmzm4prh18ak7dm7w0hi2i9snv4bsl"))))
899+
    (build-system python-build-system)
900+
    (arguments
901+
     (list #:tests? #f
902+
           #:phases
903+
           #~(modify-phases %standard-phases
904+
               (delete 'build)
905+
               (replace 'install
906+
                 (lambda _
907+
                   (apply invoke "pip" "--no-cache-dir" "--no-input"
908+
                          "install" "--no-deps" "--prefix" #$output
909+
                          (find-files "." "\\.whl$")))))))
910+
    (home-page "https://github.com/home-assistant/frontend")
911+
    (synopsis "Frontend for Home Assistant")
912+
    (description "This offers the official frontend to control Home Assistant.")
913+
    (license license:asl2.0)))
914+
915+
(define-public python-psutil-home-assistant
916+
  (package
917+
    (name "python-psutil-home-assistant")
918+
    (version "0.0.1")
919+
    (source
920+
     (origin
921+
       (method url-fetch)
922+
       (uri (pypi-uri "psutil-home-assistant" version))
923+
       (sha256
924+
        (base32 "1f5xq720fi0bnd9w9zb1jyjm1jjrxzlj6a6s80qkmnbninlz7r7b"))))
925+
    (build-system pyproject-build-system)
926+
    (propagated-inputs (list python-psutil))
927+
    (home-page "https://github.com/home-assistant-libs/psutil-home-assistant")
928+
    (synopsis
929+
     "Wrapper for psutil to allow it to be used several times in the same process.")
930+
    (description
931+
     "Wrapper for psutil to allow it to be used several times in the same process.")
932+
    (license license:asl2.0)))
933+
934+
(define-public python-pyturbojpeg
935+
  (package
936+
    (name "python-pyturbojpeg")
937+
    (version "1.6.7")
938+
    (source
939+
     (origin
940+
       (method url-fetch)
941+
       (uri (pypi-uri "PyTurboJPEG" version))
942+
       (sha256
943+
        (base32 "106djrg1qflmxjbpyqmdqgkph8a227gikgg1lgbn4791p6bq7vvv"))))
944+
    (build-system pyproject-build-system)
945+
    (inputs (list libjpeg-turbo))
946+
    (propagated-inputs (list python-numpy))
947+
    (home-page "https://github.com/lilohuang/PyTurboJPEG")
948+
    (synopsis
949+
     "A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image.")
950+
    (description
951+
     "This package provides a Python wrapper of libjpeg-turbo for decoding and
952+
encoding JPEG image.")
953+
    (license license:expat)))
954+
955+
(define-public python-webrtcvad
956+
  (package
957+
    (name "python-webrtcvad")
958+
    (version "2.0.10")
959+
    (source
960+
     (origin
961+
       (method url-fetch)
962+
       (uri (pypi-uri "webrtcvad" version))
963+
       (sha256
964+
        (base32 "1skax7nzc76qrl5sx1c4n9kr371wk460jr2xlnqvfgxn4pxx5gpi"))))
965+
    (build-system pyproject-build-system)
966+
    (arguments (list #:tests? #f))
967+
    (home-page "https://github.com/wiseman/py-webrtcvad")
968+
    (synopsis
969+
     "Python interface to the Google WebRTC Voice Activity Detector (VAD)")
970+
    (description
971+
     "Python interface to the Google @code{WebRTC} Voice Activity Detector (VAD).")
972+
    (license license:expat)))
973+
974+
(define-public python-zeroconf-for-homeassistant
975+
  (package
976+
    (inherit python-zeroconf)
977+
    (version "0.70.0")
978+
    (source
979+
     (origin
980+
       (method url-fetch)
981+
       (uri (pypi-uri "zeroconf" version))
982+
       (sha256
983+
        (base32 "0jnn71x05in3c3vh2ab0pwvh6nl9rgcichivrisaic8j6rjg6ppr"))))
984+
    (build-system pyproject-build-system)
985+
    (arguments (list #:tests? #f))
986+
    (native-inputs (list python-poetry-core))
987+
    (propagated-inputs (list python-async-timeout python-ifaddr-for-homeassistant))))
988+
989+
;;; Dependencies for default configuration
990+
991+
(define-public python-pymetno
992+
  (package
993+
    (name "python-pymetno")
994+
    (version "0.10.0")
995+
    (source
996+
     (origin
997+
       (method url-fetch)
998+
       (uri (pypi-uri "PyMetno" version))
999+
       (sha256
1000+
        (base32 "173z1nvf8fq6qzjj5vsm02cs12366xii69axjcrvrrd2l2p0y3ms"))))
1001+
    (build-system pyproject-build-system)
1002+
    (arguments (list #:tests? #f))
1003+
    (propagated-inputs (list python-aiohttp-for-homeassistant
1004+
                             python-async-timeout
1005+
                             python-xmltodict python-pytz))
1006+
    (home-page "https://github.com/Danielhiversen/pyMetno/")
1007+
    (synopsis "A library to communicate with the met.no api")
1008+
    (description
1009+
     "This package provides a library to communicate with the met.no api.")
1010+
    (license license:expat)))
1011+
1012+
(define-public python-mashumaro
1013+
  (package
1014+
    (name "python-mashumaro")
1015+
    (version "3.13.1")
1016+
    (source
1017+
     (origin
1018+
       (method url-fetch)
1019+
       (uri (pypi-uri "mashumaro" version))
1020+
       (sha256
1021+
        (base32 "0nwpy57ismmf6vjqdqnrxpys7487vnli975kpivn0giv4n8057qn"))))
1022+
    (build-system pyproject-build-system)
1023+
    (arguments (list #:tests? #f))
1024+
    (propagated-inputs (list python-typing-extensions))
1025+
    (home-page "https://github.com/Fatal1ty/mashumaro")
1026+
    (synopsis "Fast and well tested serialization library")
1027+
    (description "Fast and well tested serialization library.")
1028+
    (license license:asl2.0)))
1029+
1030+
(define-public python-backoff
1031+
  (package
1032+
    (name "python-backoff")
1033+
    (version "2.2.1")
1034+
    (source
1035+
     (origin
1036+
       (method url-fetch)
1037+
       (uri (pypi-uri "backoff" version))
1038+
       (sha256
1039+
        (base32 "1fjwz9x81wpfn22j96ck49l3nb2hn19qfgv44441h8qrpgsjky03"))))
1040+
    (build-system pyproject-build-system)
1041+
    (native-inputs (list python-poetry-core))
1042+
    (home-page "https://github.com/litl/backoff")
1043+
    (synopsis "Function decoration for backoff and retry")
1044+
    (description "Function decoration for backoff and retry.")
1045+
    (license license:expat)))
1046+
1047+
(define-public python-radios
1048+
  (package
1049+
    (name "python-radios")
1050+
    (version "0.1.1")
1051+
    (source
1052+
     (origin
1053+
       (method url-fetch)
1054+
       (uri (pypi-uri "radios" version))
1055+
       (sha256
1056+
        (base32 "17jr9nmgz2q0zxlhdln6mq9rf0x5mqsxnakbfvb4fva7q7zsmh4s"))))
1057+
    (build-system pyproject-build-system)
1058+
    (arguments (list #:tests? #f))
1059+
    (native-inputs (list python-poetry-core))
1060+
    (propagated-inputs (list python-aiodns
1061+
                             python-aiohttp-for-homeassistant
1062+
                             python-awesomeversion
1063+
                             python-backoff
1064+
                             python-cachetools
1065+
                             python-mashumaro
1066+
                             python-orjson
1067+
                             python-pycountry
1068+
                             python-yarl-for-homeassistant
1069+
                             python-pydantic))
1070+
    (home-page "https://github.com/frenck/python-radios")
1071+
    (synopsis "Asynchronous Python client for the Radio Browser API")
1072+
    (description "Asynchronous Python client for the Radio Browser API.")
1073+
    (license license:expat)))
1074+
1075+
(define-public python-securetar
1076+
  (package
1077+
    (name "python-securetar")
1078+
    (version "2023.3.0")
1079+
    (source
1080+
     (origin
1081+
       (method url-fetch)
1082+
       (uri (pypi-uri "securetar" version))
1083+
       (sha256
1084+
        (base32 "166lgvz9xvf279alyba1xmi56q37231ybdb2s1jsqwpmzhwf6qpk"))))
1085+
    (build-system pyproject-build-system)
1086+
    (propagated-inputs (list python-cryptography))
1087+
    (home-page "https://github.com/pvizeli/securetar")
1088+
    (synopsis "Python module to handle tarfile backups")
1089+
    (description "This library provides a streaming wrapper around python tarfile and
1090+
allow secure handling files and support encryption.")
1091+
    (license license:asl2.0)))
1092+
1093+
(define-public homeassistant
1094+
  (package
1095+
    (name "homeassistant")
1096+
    (version "2023.7.3")    ; Latest version that supports python 3.10
1097+
    (source
1098+
     (origin
1099+
       (method url-fetch)
1100+
       (uri (pypi-uri "homeassistant" version))
1101+
       (sha256
1102+
        (base32 "1finbjbx4m2mkwjv8ss5n821750sqwd2gsvprpa6xm03f0dvp161"))))
1103+
    (build-system pyproject-build-system)
1104+
    (arguments
1105+
     (list
1106+
      #:tests? #f
1107+
      #:phases
1108+
      #~(modify-phases %standard-phases
1109+
          (add-after 'unpack 'relax-dependencies
1110+
            (lambda _
1111+
              (substitute* "pyproject.toml"
1112+
                (("bcrypt==4.0.1")
1113+
                 "bcrypt>3")
1114+
                (("cryptography==41.0.1")
1115+
                 "cryptography>=41.0.1")
1116+
                (("pyOpenSSL==23.2.0")
1117+
                 "pyOpenSSL>=23.2.0")
1118+
                (("orjson==3.9.1")
1119+
                 "orjson>=3.9.1")))))))
1120+
    (propagated-inputs (list python-aiohttp-for-homeassistant    ; aiohttp==3.8.5
1121+
                             python-astral-for-homeassistant     ; astral==2.2
1122+
                             python-async-timeout                ; async-timeout==4.0.2
1123+
                             python-attrs-for-homeassistant      ; attrs==22.2.0
1124+
                             python-atomicwrites-homeassistant   ; atomicwrites-homeassistant==1.4.1
1125+
                             python-awesomeversion               ; awesomeversion==22.9.0
1126+
                             python-bcrypt                       ; bcrypt==4.0.1 (outdated, relaxed)
1127+
                             python-certifi                      ; certifi>=2021.5.30
1128+
                             python-ciso8601-for-homeassistant   ; ciso8601==2.3.0
1129+
                             python-httpx                        ; httpx==0.24.1
1130+
                             python-home-assistant-bluetooth     ; home-assistant-bluetooth==1.10.0
1131+
                             python-ifaddr-for-homeassistant     ; ifaddr==0.2.0
1132+
                             python-jinja2                       ; Jinja2==3.1.2
1133+
                             python-lru-dict                     ; lru-dict==1.2.0
1134+
                             python-pyjwt-for-homeassistant      ; PyJWT==2.7.0
1135+
                             python-cryptography                 ; cryptography==41.0.1 (relaxed)
1136+
                             python-pyopenssl                    ; pyOpenSSL==23.2.0 (relaxed)
1137+
                             python-orjson                       ; orjson==3.9.1 (relaxed)
1138+
                             python-pip                          ; pip>=21.3.1,<23.2
1139+
                             python-slugify-for-homeassistant    ; python-slugify==4.0.1
1140+
                             python-pyyaml                       ; PyYAML==6.0.1
1141+
                             python-requests-for-homeassistant   ; requests==2.31.0
1142+
                             python-typing-extensions            ; typing_extensions>=4.6.3,<5.0
1143+
                             python-ulid-transform               ; ulid-transform==0.7.2
1144+
                             python-voluptuous-for-homeassistant ; voluptuous==0.13.1
1145+
                             python-voluptuous-serialize         ; voluptuous-serialize==2.6.0
1146+
                             python-yarl-for-homeassistant       ; yarl==1.9.2
1147+
1148+
                             python-aiohttp-cors               ; aiohttp-cors==0.7.0
1149+
                             python-aiodiscover                ; aiodiscover==1.4.16
1150+
                             python-sqlalchemy-2               ; SQLAlchemy==2.0.15 (2.0.27)
1151+
                             python-home-assistant-intents     ; home-assistant-intents==2023.6.28
1152+
                             python-async-upnp-client          ; async-upnp-client==0.33.2
1153+
                             python-fnv-hash-fast              ; fnv-hash-fast==0.3.1
1154+
                             python-av                         ; ha-av==10.1.0 (10.0.0)
1155+
                             python-hass-nabucasa              ; hass-nabucasa==0.69.0
1156+
                             python-hassil                     ; hassil==1.0.6
1157+
                             python-home-assistant-frontend    ; home-assistant-frontend==20230705.1
1158+
                             python-janus                      ; janus==1.0.0
1159+
                             python-mutagen                    ; mutagen==1.46.0 (1.45.1)
1160+
                             python-paho-mqtt                  ; paho-mqtt==1.6.1
1161+
                             python-pillow                     ; Pillow==9.5.0 (9.2.0)
1162+
                             python-psutil-home-assistant      ; psutil-home-assistant==0.0.1
1163+
                             python-pynacl                     ; PyNaCl==1.5.0
1164+
                             python-pyserial                   ; pyserial==3.5
1165+
                             python-pyturbojpeg                ; PyTurboJPEG==1.6.7
1166+
                             python-pyudev                     ; pyudev==0.23.2 (0.22.0)
1167+
                             python-scapy                      ; scapy==2.5.0
1168+
                             python-webrtcvad                  ; webrtcvad==2.0.10
1169+
                             python-zeroconf-for-homeassistant ; zeroconf==0.70.0
1170+
1171+
                             python-pymetno   ; PyMetno==0.10.0
1172+
                             python-radios    ; radios==0.1.1
1173+
                             python-gtts      ; gTTS==2.2.4 (2.3.1)
1174+
                             python-securetar ; securetar==2023.3.0
1175+
1176+
                             python-tzdata))
1177+
    (home-page "https://www.home-assistant.io/")
1178+
    (synopsis "Open-source home automation platform")
1179+
    (description "Open source home automation that puts local control and privacy first.
1180+
Powered by a worldwide community of tinkerers and DIY enthusiasts.")
1181+
    (license license:asl2.0)))

modules/homeassistant-service.scm unknown status 1

1+
;;; SPDX-FileCopyrightText: 2024 Evgeny Pisemsky <mail@pisemsky.site>
2+
;;;
3+
;;; SPDX-License-Identifier: GPL-3.0-or-later
4+
5+
(define-module (homeassistant-service))
6+
7+
(use-modules (guix gexp)
8+
             (guix records)
9+
             (gnu packages admin)
10+
             (gnu system shadow)
11+
             (gnu services)
12+
             (gnu services shepherd)
13+
             (homeassistant-package))
14+
15+
(export homeassistant-configuration
16+
        homeassistant-configuration?
17+
        homeassistant-configuration-package
18+
        homeassistant-configuration-yaml-file
19+
        homeassistant-service-type)
20+
21+
(define homeassistant-config-dir "/var/lib/homeassistant")
22+
23+
(define-record-type* <homeassistant-configuration>
24+
  homeassistant-configuration
25+
  make-homeassistant-configuration
26+
  homeassistant-configuration?
27+
  (package   homeassistant-configuration-package
28+
             (default homeassistant))
29+
  (yaml-file homeassistant-configuration-yaml-file
30+
             (default (plain-file "configuration.yaml" "default_config:\n"))))
31+
32+
(define homeassistant-accounts
33+
  (const
34+
   (list (user-group
35+
          (name "homeassistant")
36+
          (system? #t))
37+
         (user-account
38+
          (name "homeassistant")
39+
          (group "homeassistant")
40+
          (system? #t)
41+
          (home-directory homeassistant-config-dir)
42+
          (shell (file-append shadow "/sbin/nologin"))))))
43+
44+
(define (homeassistant-activation config)
45+
  (let ((source (homeassistant-configuration-yaml-file config))
46+
        (target (string-append homeassistant-config-dir "/configuration.yaml")))
47+
    #~(begin
48+
        (if (file-exists? #$target)
49+
            (delete-file #$target))
50+
        (symlink #$source #$target))))
51+
52+
(define (homeassistant-shepherd-service config)
53+
  (let ((package (homeassistant-configuration-package config))
54+
        (yaml-file (homeassistant-configuration-yaml-file config)))
55+
    (list (shepherd-service
56+
           (documentation "Run the Home Assistant platform.")
57+
           (provision '(homeassistant))
58+
           (requirement '(loopback))
59+
           (start #~(make-forkexec-constructor
60+
                     (list #$(file-append package "/bin/hass")
61+
                           "--config" #$homeassistant-config-dir
62+
                           "--skip-pip")
63+
                     #:user "homeassistant"
64+
                     #:group "homeassistant"))
65+
           (stop #~(make-kill-destructor))))))
66+
67+
(define homeassistant-service-type
68+
  (service-type
69+
   (description "Run the Home Assistant platform.")
70+
   (name 'homeassistant)
71+
   (extensions
72+
    (list (service-extension account-service-type homeassistant-accounts)
73+
          (service-extension activation-service-type homeassistant-activation)
74+
          (service-extension shepherd-root-service-type homeassistant-shepherd-service)))
75+
   (default-value (homeassistant-configuration))))