mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
c2997409d3
Homeassitant uses this package to control Xiaomi Roborock vacuum cleaners.
40 lines
771 B
Nix
40 lines
771 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, appdirs
|
|
, click
|
|
, construct
|
|
, cryptography
|
|
, pytest
|
|
, zeroconf
|
|
, attrs
|
|
, pytz
|
|
, tqdm
|
|
, netifaces
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-miio";
|
|
version = "0.4.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "19423b3386b23d2e0fc94a8f6a358bcfbb44eed05376e33fd434d26d168bd18c";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
|
|
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Python library for interfacing with Xiaomi smart appliances";
|
|
homepage = https://github.com/rytilahti/python-miio;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ flyfloh ];
|
|
};
|
|
}
|
|
|