depot/third_party/nixpkgs/pkgs/development/python-modules/ha-philipsjs/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

50 lines
997 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, httpx
, pytest-aiohttp
, pytest-mock
, pytestCheckHook
, pythonOlder
, respx
}:
buildPythonPackage rec {
pname = "ha-philipsjs";
version = "3.1.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "danielperna84";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-r8uqToxkJg9j89UUZpxsPXutWPefAYDW95zFBKU9Al4=";
};
propagatedBuildInputs = [
cryptography
httpx
];
nativeCheckInputs = [
pytest-aiohttp
pytest-mock
pytestCheckHook
respx
];
pythonImportsCheck = [
"haphilipsjs"
];
meta = with lib; {
description = "Python 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 ];
};
}