depot/third_party/nixpkgs/pkgs/development/python-modules/pmsensor/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

34 lines
668 B
Nix

{ 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 ];
};
}