about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/i2csense/default.nix
blob: 6923b1d0c3c827e0ec642a045f74eceb5b4a7e17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ 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";
    mainProgram = "i2csense";
    homepage = "https://github.com/azogue/i2csense";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
  };
}