nixos-option: rewrite as a nix script, 2nd try (#369151)
[NixPkgs.git] / pkgs / development / python-modules / i2csense / default.nix
blob2aa74cedb2f8e21d7996a360c9396e518e224bec
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   smbus-cffi,
6 }:
8 buildPythonPackage rec {
9   pname = "i2csense";
10   version = "0.0.4";
11   format = "setuptools";
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "6f9c0a37d971e5b8a60c54982bd580cff84bf94fedc08c097e603a8e5609c33f";
16   };
18   propagatedBuildInputs = [ smbus-cffi ];
20   # no tests implemented
21   doCheck = false;
23   pythonImportsCheck = [
24     "i2csense.bme280"
25     "i2csense.bh1750"
26     "i2csense.htu21d"
27   ];
29   meta = with lib; {
30     description = "Library to handle i2c sensors with the Raspberry Pi";
31     mainProgram = "i2csense";
32     homepage = "https://github.com/azogue/i2csense";
33     license = licenses.mit;
34     maintainers = with maintainers; [ dotlambda ];
35   };