1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 pytestCheckHook, 7 pythonOlder, 8 pyyaml, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "pyvesync"; 14 version = "2.1.18"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "webdjoe"; 21 repo = "pyvesync"; 22 tag = version; 23 hash = "sha256-p46QVjJ8MzvsAu9JAQo4XN+z96arWLoJakdT81ITasU="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ requests ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 pyyaml 33 ]; 34 35 pythonImportsCheck = [ "pyvesync" ]; 36 37 meta = with lib; { 38 description = "Python library to manage Etekcity Devices and Levoit Air Purifier"; 39 homepage = "https://github.com/webdjoe/pyvesync"; 40 changelog = "https://github.com/webdjoe/pyvesync/releases/tag/${src.tag}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}