python3Packages.i2csense: init at 0.0.4
This commit is contained in:
parent
de43d26955
commit
0d4cbb0e7f
2 changed files with 37 additions and 0 deletions
35
pkgs/development/python-modules/i2csense/default.nix
Normal file
35
pkgs/development/python-modules/i2csense/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, smbus-cffi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "i2csense";
|
||||
version = "0.0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6f9c0a37d971e5b8a60c54982bd580cff84bf94fedc08c097e603a8e5609c33f";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
smbus-cffi
|
||||
];
|
||||
|
||||
# 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";
|
||||
homepage = "https://github.com/azogue/i2csense";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -3874,6 +3874,8 @@ in {
|
|||
inherit (pkgs) i2c-tools;
|
||||
};
|
||||
|
||||
i2csense = callPackage ../development/python-modules/i2csense { };
|
||||
|
||||
i3ipc = callPackage ../development/python-modules/i3ipc { };
|
||||
|
||||
i3-py = callPackage ../development/python-modules/i3-py { };
|
||||
|
|
Loading…
Reference in a new issue