567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
669 B
Nix
34 lines
669 B
Nix
{
|
|
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 = {
|
|
description = "Library for BME280 sensor through spidev";
|
|
mainProgram = "bme280spi";
|
|
homepage = "https://github.com/Kuzj/bme280spi";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|