mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 21:35:36 +00:00
python3Packages.vizaio: init at 0.6.1
This commit is contained in:
63
pkgs/development/python-modules/vizaio/default.nix
Normal file
63
pkgs/development/python-modules/vizaio/default.nix
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
lib,
|
||||
aiohttp,
|
||||
aioresponses,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
platformdirs,
|
||||
pyprojectVersionPatchHook,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
rich,
|
||||
tomlkit,
|
||||
typer,
|
||||
zeroconf,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "vizaio";
|
||||
version = "0.6.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raman325";
|
||||
repo = "vizaio";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-u0ZHSHzkGna9ajmV7V3n8YKPuI598acnXhIEBXvnU2I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pyprojectVersionPatchHook ];
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [ aiohttp ];
|
||||
|
||||
optional-dependencies = {
|
||||
cli = [
|
||||
platformdirs
|
||||
rich
|
||||
tomlkit
|
||||
typer
|
||||
];
|
||||
discovery = [ zeroconf ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
aioresponses
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
]
|
||||
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
|
||||
|
||||
pythonImportsCheck = [ "vizaio" ];
|
||||
|
||||
meta = {
|
||||
description = "Modern async Python client and CLI for Vizio SmartCast devices";
|
||||
homepage = "https://github.com/raman325/vizaio";
|
||||
changelog = "https://github.com/raman325/vizaio/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.jamiemagee ];
|
||||
mainProgram = "vizaio";
|
||||
};
|
||||
})
|
||||
@@ -22255,6 +22255,8 @@ self: super: with self; {
|
||||
inherit (pkgs.libsForQt5) wrapQtAppsHook;
|
||||
};
|
||||
|
||||
vizaio = callPackage ../development/python-modules/vizaio { };
|
||||
|
||||
vl-convert-python = callPackage ../development/python-modules/vl-convert-python {
|
||||
inherit (pkgs) protobuf;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user