Files
nixpkgs/pkgs/development/python-modules/meross-iot/default.nix
T
2025-08-30 18:32:47 +00:00

47 lines
967 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
paho-mqtt,
pycryptodomex,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "meross-iot";
version = "0.4.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "albertogeniola";
repo = "MerossIot";
tag = version;
hash = "sha256-c9nUFCjbuqJaGk5Rqo+Nmr+IYQrWsVqb36mLmYTc47s=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
paho-mqtt
pycryptodomex
requests
]
++ aiohttp.optional-dependencies.speedups;
# 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 ];
};
}