Files
nixpkgs/pkgs/development/python-modules/i2csense/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
736 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
smbus-cffi,
}:
buildPythonPackage rec {
pname = "i2csense";
version = "0.0.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "6f9c0a37d971e5b8a60c54982bd580cff84bf94fedc08c097e603a8e5609c33f";
};
propagatedBuildInputs = [ smbus-cffi ];
# no tests implemented
doCheck = false;
pythonImportsCheck = [
"i2csense.bme280"
"i2csense.bh1750"
"i2csense.htu21d"
];
meta = {
description = "Library to handle i2c sensors with the Raspberry Pi";
mainProgram = "i2csense";
homepage = "https://github.com/azogue/i2csense";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}