depot/third_party/nixpkgs/pkgs/development/python-modules/meross-iot/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 lines
1,011 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
paho-mqtt,
pythonOlder,
pycryptodomex,
requests,
retrying,
setuptools,
}:
buildPythonPackage rec {
pname = "meross-iot";
version = "0.4.7.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "albertogeniola";
repo = "MerossIot";
rev = "refs/tags/${version}";
hash = "sha256-Ne9m6umPmX3uXAyY9/Ucvi/rPdHrGJgD5IrZ+BBQweI=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
paho-mqtt
pycryptodomex
requests
retrying
];
# Test require network access
doCheck = false;
pythonImportsCheck = [ "meross_iot" ];
meta = with lib; {
description = "Python library to interact with Meross devices";
homepage = "https://github.com/albertogeniola/MerossIot";
changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}