5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
38 lines
840 B
Nix
38 lines
840 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvesync";
|
|
version = "2.1.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-RrFCza6y5IdeDokSAGOYs20OMIm4UGCRy/0YO/uYtNo=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/webdjoe/pyvesync/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|