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