1{ 2 lib, 3 buildPythonPackage, 4 unittestCheckHook, 5 fetchFromGitHub, 6 lm_sensors, 7}: 8buildPythonPackage { 9 version = "2017-07-13"; 10 format = "setuptools"; 11 pname = "pysensors"; 12 13 # note that https://pypi.org/project/PySensors/ is a different project 14 src = fetchFromGitHub { 15 owner = "bastienleonard"; 16 repo = "pysensors"; 17 rev = "ef46fc8eb181ecb8ad09b3d80bc002d23d9e26b3"; 18 sha256 = "1xvbxnkz55fk5fpr514263c7s7s9r8hgrw4ybfaj5a0mligmmrfm"; 19 }; 20 21 buildInputs = [ lm_sensors ]; 22 23 # Tests are disable because they fail on `aarch64-linux`, probably 24 # due to sandboxing 25 doCheck = false; 26 27 nativeCheckInputs = [ unittestCheckHook ]; 28 29 unittestFlagsArray = [ 30 "-s" 31 "tests" 32 ]; 33 34 meta = with lib; { 35 maintainers = with maintainers; [ guibou ]; 36 description = "Easy hardware health monitoring in Python for Linux systems"; 37 homepage = "https://bastienleonard.github.io/pysensors/"; 38 license = licenses.bsd2; 39 platforms = platforms.linux; 40 }; 41}