1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyserial 5}: 6 7buildPythonPackage rec { 8 pname = "pmsensor"; 9 version = "0.4"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "7fc03aafb791ca70d847c9ab97cf181bc7d8f7345efb4b0c3f66c07b9c7dee69"; 14 }; 15 16 propagatedBuildInputs = [ 17 pyserial 18 ]; 19 20 # no tests implemented 21 doCheck = false; 22 23 pythonImportsCheck = [ 24 "pmsensor.co2sensor" 25 "pmsensor.serial_pm" 26 ]; 27 28 meta = with lib; { 29 description = "Library to read data from environment sensors"; 30 homepage = "https://github.com/open-homeautomation/pmsensor"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ dotlambda ]; 33 }; 34}