1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 psutil,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "psutil-home-assistant";
11 version = "0.0.1";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "home-assistant-libs";
16 repo = "psutil-home-assistant";
17 tag = version;
18 hash = "sha256-6bj1aaa/JYZFVwUAJfxISRoldgTmumCG8WrlKhkb6kM=";
19 };
20
21 propagatedBuildInputs = [ psutil ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 meta = with lib; {
26 changelog = "https://github.com/home-assistant-libs/psutil-home-assistant/releases/tag/${version}";
27 description = "Wrapper of psutil that removes reliance on globals";
28 homepage = "https://github.com/home-assistant-libs/psutil-home-assistant";
29 license = licenses.asl20;
30 teams = [ teams.home-assistant ];
31 };
32}