2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
smbus-cffi,
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "i2csense";
|
|
|
|
version = "0.0.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "6f9c0a37d971e5b8a60c54982bd580cff84bf94fedc08c097e603a8e5609c33f";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ smbus-cffi ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"i2csense.bme280"
|
|
|
|
"i2csense.bh1750"
|
|
|
|
"i2csense.htu21d"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library to handle i2c sensors with the Raspberry Pi";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "i2csense";
|
2022-02-20 05:27:41 +00:00
|
|
|
homepage = "https://github.com/azogue/i2csense";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|