nixpkgs/pkgs/development/python-modules/i2csense/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

37 lines
710 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 = 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 ];
};
}