python3.pkgs.bme680: init at 1.0.5
This commit is contained in:
parent
d1dc6f61f9
commit
105dd1dfae
37
pkgs/development/python-modules/bme680/default.nix
Normal file
37
pkgs/development/python-modules/bme680/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, smbus-cffi
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "bme680";
|
||||||
|
version = "1.0.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "pimoroni";
|
||||||
|
repo = "bme680-python";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-oIXh1JnGTI/Cj4MQFpWq+sWR2X+ioCsK0Q+T7wPITCQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ smbus-cffi ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
cd library
|
||||||
|
'';
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
# next release will have tests, but not the current one
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "bme680" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python library for driving the Pimoroni BME680 Breakout";
|
||||||
|
homepage = "https://github.com/pimoroni/bme680-python";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ mic92 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -913,6 +913,8 @@ in {
|
||||||
|
|
||||||
bluepy = callPackage ../development/python-modules/bluepy { };
|
bluepy = callPackage ../development/python-modules/bluepy { };
|
||||||
|
|
||||||
|
bme680 = callPackage ../development/python-modules/bme680 { };
|
||||||
|
|
||||||
bokeh = callPackage ../development/python-modules/bokeh { };
|
bokeh = callPackage ../development/python-modules/bokeh { };
|
||||||
|
|
||||||
boltons = callPackage ../development/python-modules/boltons { };
|
boltons = callPackage ../development/python-modules/boltons { };
|
||||||
|
|
Loading…
Reference in a new issue