python3Packages.pmsensor: init at 0.4

This commit is contained in:
Robert Schütz 2021-06-18 16:11:03 +02:00
parent b0cf786b96
commit a377e26ee0
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, pyserial
}:
buildPythonPackage rec {
pname = "pmsensor";
version = "0.4";
src = fetchPypi {
inherit pname version;
sha256 = "7fc03aafb791ca70d847c9ab97cf181bc7d8f7345efb4b0c3f66c07b9c7dee69";
};
propagatedBuildInputs = [
pyserial
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [
"pmsensor.co2sensor"
"pmsensor.serial_pm"
];
meta = with lib; {
description = "Library to read data from environment sensors";
homepage = "https://github.com/open-homeautomation/pmsensor";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -5242,6 +5242,8 @@ in {
pkuseg = callPackage ../development/python-modules/pkuseg { };
pmsensor = callPackage ../development/python-modules/pmsensor { };
ppdeep = callPackage ../development/python-modules/ppdeep { };
pyatag = callPackage ../development/python-modules/pyatag { };