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

45 lines
861 B
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
pyjwt,
pytestCheckHook,
pythonOlder,
yarl,
}:
buildPythonPackage rec {
pname = "homepluscontrol";
version = "0.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "chemaaa";
repo = pname;
rev = version;
hash = "sha256-COOGqfYiR4tueQHXuCvVxShrYS0XNltcW4mclbFWcfA=";
};
propagatedBuildInputs = [
aiohttp
pyjwt
yarl
];
nativeCheckInputs = [
aioresponses
pytestCheckHook
];
pythonImportsCheck = [ "homepluscontrol" ];
meta = with lib; {
description = "Python API to interact with the Legrand Eliot Home and Control";
homepage = "https://github.com/chemaaa/homepluscontrol";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}