depot/third_party/nixpkgs/pkgs/development/python-modules/ha-philipsjs/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
httpx,
pytest-aiohttp,
pytest-mock,
pytestCheckHook,
pythonOlder,
respx,
setuptools,
}:
buildPythonPackage rec {
pname = "ha-philipsjs";
version = "3.2.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "danielperna84";
repo = "ha-philipsjs";
rev = "refs/tags/${version}";
hash = "sha256-zP8cuXdhvCDvnbc20GbFwgickdqeJ17b0vk0zK8ze9Q=";
};
build-system = [ setuptools ];
dependencies = [
cryptography
httpx
];
nativeCheckInputs = [
pytest-aiohttp
pytest-mock
pytestCheckHook
respx
];
pythonImportsCheck = [ "haphilipsjs" ];
meta = with lib; {
description = "Library to interact with Philips TVs with jointSPACE API";
homepage = "https://github.com/danielperna84/ha-philipsjs";
changelog = "https://github.com/danielperna84/ha-philipsjs/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}