1{ lib, buildPythonPackage, unittestCheckHook, 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 nativeCheckInputs = [ unittestCheckHook ];
21
22 unittestFlagsArray = [ "-s" "tests" ];
23
24 meta = with lib; {
25 maintainers = with maintainers; [ guibou ];
26 description = "Easy hardware health monitoring in Python for Linux systems";
27 homepage = "https://pysensors.readthedocs.org";
28 license = licenses.bsd2;
29 platforms = platforms.linux;
30 };
31}