mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-05 04:23:47 +00:00
a7c5918f44
Diff: https://github.com/albertogeniola/MerossIot/compare/refs/tags/0.4.5.9...0.4.6.0 Changelog: https://github.com/albertogeniola/MerossIot/releases/tag/0.4.6.0
48 lines
956 B
Nix
48 lines
956 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, paho-mqtt
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, retrying
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "meross-iot";
|
|
version = "0.4.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "albertogeniola";
|
|
repo = "MerossIot";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8DnzTwW4fQQIGAHZJbu2aKkqOUU6a6IGgif5tIZCing=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
paho-mqtt
|
|
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 ];
|
|
};
|
|
}
|