Files
nixpkgs/pkgs/development/python-modules/python-mystrom/default.nix

53 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
click,
fetchFromGitHub,
poetry-core,
requests,
}:
buildPythonPackage rec {
pname = "python-mystrom";
version = "2.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-ecosystem";
repo = "python-mystrom";
tag = version;
hash = "sha256-EXYBrOgpbOSGsNGqNKHBPam0/Gn050q+CjyAN7KJ7O8=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
click
requests
];
# no tests are present
doCheck = false;
pythonImportsCheck = [
"pymystrom.bulb"
"pymystrom.pir"
"pymystrom.switch"
];
meta = {
description = "Python API client for interacting with myStrom devices";
longDescription = ''
Asynchronous Python API client for interacting with myStrom devices.
There is support for bulbs, motion sensors, plugs and buttons.
'';
homepage = "https://github.com/home-assistant-ecosystem/python-mystrom";
changelog = "https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "mystrom";
};
}