depot/third_party/nixpkgs/pkgs/development/python-modules/bme280spi/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

32 lines
614 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, spidev
}:
buildPythonPackage rec {
pname = "bme280spi";
version = "0.2.0";
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";
homepage = "https://github.com/Kuzj/bme280spi";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}