linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / bme680 / default.nix
blobcdae502e7e5984f85c8acb87fd88c9d52ee6cb89
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , smbus-cffi
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "bme680";
10   version = "1.0.5";
12   src = fetchFromGitHub {
13     owner = "pimoroni";
14     repo = "bme680-python";
15     rev = "v${version}";
16     sha256 = "sha256-oIXh1JnGTI/Cj4MQFpWq+sWR2X+ioCsK0Q+T7wPITCQ=";
17   };
19   propagatedBuildInputs = [ smbus-cffi ];
21   preBuild = ''
22     cd library
23   '';
24   checkInputs = [ pytestCheckHook ];
26   # next release will have tests, but not the current one
27   doCheck = false;
29   pythonImportsCheck = [ "bme680" ];
31   meta = with lib; {
32     description = "Python library for driving the Pimoroni BME680 Breakout";
33     homepage = "https://github.com/pimoroni/bme680-python";
34     license = licenses.mit;
35     platforms = platforms.linux;
36     maintainers = with maintainers; [ mic92 ];
37   };