about summary refs log tree commit diff
path: root/pkgs/development/python-modules/bme280spi/default.nix
blob: 7747925a24785f2bcaf89b95dbd7f7c592b104be (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
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, spidev
}:

buildPythonPackage rec {
  pname = "bme280spi";
  version = "0.2.0";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    sha256 = "51682acefda6f29eaaf9f37815edbfdd48ef0e9f1509419eceafe7b440eddc6e";
  };

  propagatedBuildInputs = [
    spidev
  ];

  # no tests implemented
  doCheck = false;

  meta = with lib; {
    description = "Library for BME280 sensor through spidev";
    mainProgram = "bme280spi";
    homepage = "https://github.com/Kuzj/bme280spi";
    license = licenses.mit;
    maintainers = with maintainers; [ dotlambda ];
  };
}