1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "pyvesync"; 10 version = "2.0.4"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-1Svz/9ZS5ynr88/We1fa+H1IGdC5ljUa4M5O8X+muX4="; 18 }; 19 20 propagatedBuildInputs = [ 21 requests 22 ]; 23 24 # Test are not available (not in PyPI tarball and there are no GitHub releases) 25 doCheck = false; 26 27 pythonImportsCheck = [ 28 "pyvesync" 29 ]; 30 31 meta = with lib; { 32 description = "Python library to manage Etekcity Devices and Levoit Air Purifier"; 33 homepage = "https://github.com/webdjoe/pyvesync"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}