at master 693 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pyserial, 6}: 7 8buildPythonPackage rec { 9 pname = "pmsensor"; 10 version = "0.4"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "7fc03aafb791ca70d847c9ab97cf181bc7d8f7345efb4b0c3f66c07b9c7dee69"; 16 }; 17 18 propagatedBuildInputs = [ pyserial ]; 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}