Merge pull request #127361 from dotlambda/pmsensor-init
This commit is contained in:
commit
0da0d6a494
4 changed files with 39 additions and 2 deletions
34
pkgs/development/python-modules/pmsensor/default.nix
Normal file
34
pkgs/development/python-modules/pmsensor/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -503,7 +503,7 @@
|
|||
"meteoclimatic" = ps: with ps; [ pymeteoclimatic ];
|
||||
"metoffice" = ps: with ps; [ ]; # missing inputs: datapoint
|
||||
"mfi" = ps: with ps; [ ]; # missing inputs: mficlient
|
||||
"mhz19" = ps: with ps; [ ]; # missing inputs: pmsensor
|
||||
"mhz19" = ps: with ps; [ pmsensor ];
|
||||
"microsoft" = ps: with ps; [ ]; # missing inputs: pycsspeechtts
|
||||
"microsoft_face" = ps: with ps; [ aiohttp-cors ];
|
||||
"microsoft_face_detect" = ps: with ps; [ aiohttp-cors ];
|
||||
|
@ -739,7 +739,7 @@
|
|||
"sensor" = ps: with ps; [ sqlalchemy ];
|
||||
"sentry" = ps: with ps; [ sentry-sdk ];
|
||||
"serial" = ps: with ps; [ pyserial-asyncio ];
|
||||
"serial_pm" = ps: with ps; [ ]; # missing inputs: pmsensor
|
||||
"serial_pm" = ps: with ps; [ pmsensor ];
|
||||
"sesame" = ps: with ps; [ ]; # missing inputs: pysesame2
|
||||
"seven_segments" = ps: with ps; [ pillow ];
|
||||
"seventeentrack" = ps: with ps; [ ]; # missing inputs: py17track
|
||||
|
|
|
@ -503,6 +503,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"met"
|
||||
"met_eireann"
|
||||
"meteoclimatic"
|
||||
"mhz19"
|
||||
"microsoft_face"
|
||||
"microsoft_face_detect"
|
||||
"microsoft_face_identify"
|
||||
|
|
|
@ -5244,6 +5244,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 { };
|
||||
|
|
Loading…
Reference in a new issue