mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
63 lines
1.4 KiB
Nix
63 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
python3Packages,
|
|
versionCheckHook,
|
|
}:
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "catt";
|
|
version = "0.13.3";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skorokithakis";
|
|
repo = "catt";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-UiO46HNzeO2wg41Zn89bUdl34UeZZmWjekGxxsLgGwQ=";
|
|
};
|
|
|
|
build-system = [
|
|
python3Packages.poetry-core
|
|
];
|
|
|
|
dependencies = [
|
|
python3Packages.click
|
|
python3Packages.ifaddr
|
|
python3Packages.pychromecast
|
|
python3Packages.requests
|
|
python3Packages.yt-dlp
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
python3Packages.pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Require network access.
|
|
"test_stream_info_youtube_video"
|
|
"test_stream_info_youtube_playlist"
|
|
"test_stream_info_other_video"
|
|
"test_stream_info_direct_link"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
doInstallCheck = true;
|
|
|
|
pythonImportsCheck = [
|
|
"catt"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Allows you to send videos from many, many online sources to your Chromecast";
|
|
homepage = "https://github.com/skorokithakis/catt";
|
|
changelog = "https://github.com/skorokithakis/catt/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ lib.maintainers.aaravrav ];
|
|
mainProgram = "catt";
|
|
};
|
|
})
|