2021-02-12 20:17:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvesync";
|
2021-05-14 00:03:03 +02:00
|
|
|
version = "1.4.0";
|
2021-02-12 20:17:00 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-14 00:03:03 +02:00
|
|
|
sha256 = "sha256-xvHvZx22orJR94cRMyyXey27Ksh2/ULHRvv7xxXv11k=";
|
2021-02-12 20:17:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
# Test are not available (not in PyPI tarball and there are no GitHub releases)
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyvesync" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to manage Etekcity Devices and Levoit Air Purifier";
|
|
|
|
homepage = "https://github.com/webdjoe/pyvesync";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|