1{ lib 2, buildPythonPackage 3, fetchPypi 4, smbus-cffi 5}: 6 7buildPythonPackage rec { 8 pname = "i2csense"; 9 version = "0.0.4"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "6f9c0a37d971e5b8a60c54982bd580cff84bf94fedc08c097e603a8e5609c33f"; 14 }; 15 16 propagatedBuildInputs = [ 17 smbus-cffi 18 ]; 19 20 # no tests implemented 21 doCheck = false; 22 23 pythonImportsCheck = [ 24 "i2csense.bme280" 25 "i2csense.bh1750" 26 "i2csense.htu21d" 27 ]; 28 29 meta = with lib; { 30 description = "A library to handle i2c sensors with the Raspberry Pi"; 31 homepage = "https://github.com/azogue/i2csense"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ dotlambda ]; 34 }; 35}