Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pmsensor / default.nix
blob1d64852f281e33c238634cedbd639ff427775b43
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pyserial
5 }:
7 buildPythonPackage rec {
8   pname = "pmsensor";
9   version = "0.4";
11   src = fetchPypi {
12     inherit pname version;
13     sha256 = "7fc03aafb791ca70d847c9ab97cf181bc7d8f7345efb4b0c3f66c07b9c7dee69";
14   };
16   propagatedBuildInputs = [
17     pyserial
18   ];
20   # no tests implemented
21   doCheck = false;
23   pythonImportsCheck = [
24     "pmsensor.co2sensor"
25     "pmsensor.serial_pm"
26   ];
28   meta = with lib; {
29     description = "Library to read data from environment sensors";
30     homepage = "https://github.com/open-homeautomation/pmsensor";
31     license = licenses.mit;
32     maintainers = with maintainers; [ dotlambda ];
33   };