Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 831 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, smbus-cffi 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "bme680"; 10 version = "1.0.5"; 11 12 src = fetchFromGitHub { 13 owner = "pimoroni"; 14 repo = "bme680-python"; 15 rev = "v${version}"; 16 sha256 = "sha256-oIXh1JnGTI/Cj4MQFpWq+sWR2X+ioCsK0Q+T7wPITCQ="; 17 }; 18 19 propagatedBuildInputs = [ smbus-cffi ]; 20 21 preBuild = '' 22 cd library 23 ''; 24 checkInputs = [ pytestCheckHook ]; 25 26 # next release will have tests, but not the current one 27 doCheck = false; 28 29 pythonImportsCheck = [ "bme680" ]; 30 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 }; 38}