aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/bme680/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/bme680/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/bme680/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/bme680/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/bme680/default.nix
new file mode 100644
index 000000000000..cdae502e7e59
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/bme680/default.nix
@@ -0,0 +1,38 @@
+{ 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;
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ mic92 ];
+ };
+}