Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / i2csense / default.nix
blob6923b1d0c3c827e0ec642a045f74eceb5b4a7e17
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , smbus-cffi
5 }:
7 buildPythonPackage rec {
8   pname = "i2csense";
9   version = "0.0.4";
10   format = "setuptools";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "6f9c0a37d971e5b8a60c54982bd580cff84bf94fedc08c097e603a8e5609c33f";
15   };
17   propagatedBuildInputs = [
18     smbus-cffi
19   ];
21   # no tests implemented
22   doCheck = false;
24   pythonImportsCheck = [
25     "i2csense.bme280"
26     "i2csense.bh1750"
27     "i2csense.htu21d"
28   ];
30   meta = with lib; {
31     description = "A library to handle i2c sensors with the Raspberry Pi";
32     mainProgram = "i2csense";
33     homepage = "https://github.com/azogue/i2csense";
34     license = licenses.mit;
35     maintainers = with maintainers; [ dotlambda ];
36   };