depot/third_party/nixpkgs/pkgs/development/python-modules/dirigera/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

47 lines
982 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pydantic,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
websocket-client,
}:
buildPythonPackage rec {
pname = "dirigera";
version = "1.1.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Leggin";
repo = "dirigera";
rev = "refs/tags/v${version}";
hash = "sha256-60DLNp3mM4LpnmM98JVcKlOxj20jvtsBnYq7tL4WEW8=";
};
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";
};
}