nixpkgs/pkgs/development/python-modules/pyvera/default.nix
2025-02-11 14:20:48 +01:00

51 lines
1004 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytest-asyncio,
pytest-timeout,
responses,
pytestCheckHook,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "pyvera";
version = "0.3.16";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "pavoni";
repo = "pyvera";
tag = version;
hash = "sha256-WLzVOQEykST2BsVRHmcBhrsd/am0jI/f7D0PmpCTbdQ=";
};
build-system = [ poetry-core ];
dependencies = [ requests ];
nativeCheckInputs = [
pytest-asyncio
pytest-timeout
pytest-cov-stub
pytestCheckHook
responses
];
pythonImportsCheck = [ "pyvera" ];
meta = with lib; {
description = "Python library to control devices via the Vera hub";
homepage = "https://github.com/pavoni/pyvera";
changelog = "https://github.com/maximvelichko/pyvera/releases/tag/${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
};
}