3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
37 lines
763 B
Nix
37 lines
763 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyvesync";
|
|
version = "2.0.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-1Svz/9ZS5ynr88/We1fa+H1IGdC5ljUa4M5O8X+muX4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|