My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/i2csense/default.nix

35 lines
685 B

{ 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 ];
};
}