Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pysensors / default.nix
blob8cff62b89c1fe1fbfb98a458d4e7dfc791f74fa7
1 { lib, buildPythonPackage, python, fetchFromGitHub, lm_sensors }:
2 buildPythonPackage {
3   version = "2017-07-13";
4   pname = "pysensors";
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   };
14   buildInputs = [ lm_sensors ];
16   # Tests are disable because they fail on `aarch64-linux`, probably
17   # due to sandboxing
18   doCheck = false;
20   checkPhase = ''
21     cd tests
22     ${python.interpreter} -m unittest discover
23   '';
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   };