nixpkgs/pkgs/development/python-modules/dirigera/default.nix
2024-03-28 08:38:20 +01:00

53 lines
990 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pydantic
, pytestCheckHook
, pythonOlder
, requests
, setuptools
, websocket-client
}:
buildPythonPackage rec {
pname = "dirigera";
version = "1.0.12";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Leggin";
repo = "dirigera";
rev = "refs/tags/v${version}";
hash = "sha256-e8kbMP5ih7MBozFbylLEBR9DrS894X4xZh62OLLSgFw=";
};
build-system = [
setuptools
];
dependencies = [
pydantic
requests
websocket-client
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"dirigera"
];
meta = with lib; {
description = "Module for controlling the IKEA Dirigera Smart Home Hub";
homepage = "https://github.com/Leggin/dirigera";
changelog = "https://github.com/Leggin/dirigera/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "generate-token";
};
}