2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, python, fetchFromGitHub, lm_sensors }:
|
2019-08-13 22:52:01 +01:00
|
|
|
buildPythonPackage {
|
2018-04-15 09:49:10 +01:00
|
|
|
version = "2017-07-13";
|
|
|
|
pname = "pysensors";
|
|
|
|
|
|
|
|
# note that https://pypi.org/project/PySensors/ is a different project
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bastienleonard";
|
|
|
|
repo = "pysensors";
|
|
|
|
rev = "ef46fc8eb181ecb8ad09b3d80bc002d23d9e26b3";
|
|
|
|
sha256 = "1xvbxnkz55fk5fpr514263c7s7s9r8hgrw4ybfaj5a0mligmmrfm";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ lm_sensors ];
|
|
|
|
|
|
|
|
# Tests are disable because they fail on `aarch64-linux`, probably
|
|
|
|
# due to sandboxing
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd tests
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-15 09:49:10 +01:00
|
|
|
maintainers = with maintainers; [ guibou ];
|
|
|
|
description = "Easy hardware health monitoring in Python for Linux systems";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pysensors.readthedocs.org";
|
2018-04-15 09:49:10 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|