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