1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "pyvesync"; 10 version = "2.1.10"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-ddtTtTAUpvS8DN1vKVN+CjnmYp20xyxHydwOaDRjWzo="; 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 changelog = "https://github.com/webdjoe/pyvesync/releases/tag/${version}"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}