mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-02 02:38:44 +00:00
31 lines
606 B
Nix
31 lines
606 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
spidev,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bme280spi";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-UWgqzv2m8p6q+fN4Fe2/3UjvDp8VCUGezq/ntEDt3G4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|