Merge pull request #127361 from dotlambda/pmsensor-init

This commit is contained in:
Sandro 2021-06-18 20:01:58 +02:00 committed by GitHub
commit 0da0d6a494
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 2 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

@ -503,7 +503,7 @@
"meteoclimatic" = ps: with ps; [ pymeteoclimatic ]; "meteoclimatic" = ps: with ps; [ pymeteoclimatic ];
"metoffice" = ps: with ps; [ ]; # missing inputs: datapoint "metoffice" = ps: with ps; [ ]; # missing inputs: datapoint
"mfi" = ps: with ps; [ ]; # missing inputs: mficlient "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" = ps: with ps; [ ]; # missing inputs: pycsspeechtts
"microsoft_face" = ps: with ps; [ aiohttp-cors ]; "microsoft_face" = ps: with ps; [ aiohttp-cors ];
"microsoft_face_detect" = ps: with ps; [ aiohttp-cors ]; "microsoft_face_detect" = ps: with ps; [ aiohttp-cors ];
@ -739,7 +739,7 @@
"sensor" = ps: with ps; [ sqlalchemy ]; "sensor" = ps: with ps; [ sqlalchemy ];
"sentry" = ps: with ps; [ sentry-sdk ]; "sentry" = ps: with ps; [ sentry-sdk ];
"serial" = ps: with ps; [ pyserial-asyncio ]; "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 "sesame" = ps: with ps; [ ]; # missing inputs: pysesame2
"seven_segments" = ps: with ps; [ pillow ]; "seven_segments" = ps: with ps; [ pillow ];
"seventeentrack" = ps: with ps; [ ]; # missing inputs: py17track "seventeentrack" = ps: with ps; [ ]; # missing inputs: py17track

View file

@ -503,6 +503,7 @@ in with py.pkgs; buildPythonApplication rec {
"met" "met"
"met_eireann" "met_eireann"
"meteoclimatic" "meteoclimatic"
"mhz19"
"microsoft_face" "microsoft_face"
"microsoft_face_detect" "microsoft_face_detect"
"microsoft_face_identify" "microsoft_face_identify"

View file

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