Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, psutil 5, pytestCheckHook 6}: 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 rev = "refs/tags/${version}"; 18 hash = "sha256-6bj1aaa/JYZFVwUAJfxISRoldgTmumCG8WrlKhkb6kM="; 19 }; 20 21 propagatedBuildInputs = [ 22 psutil 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 meta = with lib; { 30 changelog = "https://github.com/home-assistant-libs/psutil-home-assistant/releases/tag/${version}"; 31 description = "Wrapper of psutil that removes reliance on globals"; 32 homepage = "https://github.com/home-assistant-libs/psutil-home-assistant"; 33 license = licenses.asl20; 34 maintainers = teams.home-assistant.members; 35 }; 36}