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