blob: a13f92af4b7e1e9254b2d111a04aac09a059a716 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{
lib,
buildPythonPackage,
fetchPypi,
pyserial,
}:
buildPythonPackage rec {
pname = "pmsensor";
version = "0.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "7fc03aafb791ca70d847c9ab97cf181bc7d8f7345efb4b0c3f66c07b9c7dee69";
};
propagatedBuildInputs = [ pyserial ];
# no tests implemented
doCheck = false;
pythonImportsCheck = [
"pmsensor.co2sensor"
"pmsensor.serial_pm"
];
meta = {
description = "Library to read data from environment sensors";
homepage = "https://github.com/open-homeautomation/pmsensor";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|