2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
psutil,
|
|
|
|
pytestCheckHook,
|
2022-09-11 15:47:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "psutil-home-assistant";
|
|
|
|
version = "0.0.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "home-assistant-libs";
|
|
|
|
repo = "psutil-home-assistant";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-6bj1aaa/JYZFVwUAJfxISRoldgTmumCG8WrlKhkb6kM=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ psutil ];
|
2022-09-11 15:47:08 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/home-assistant-libs/psutil-home-assistant/releases/tag/${version}";
|
|
|
|
description = "Wrapper of psutil that removes reliance on globals";
|
|
|
|
homepage = "https://github.com/home-assistant-libs/psutil-home-assistant";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.home-assistant.members;
|
|
|
|
};
|
|
|
|
}
|