mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 12:14:40 +00:00
philipstv: init at 2.1.1 (#359886)
This commit is contained in:
commit
8b3da597e9
73
pkgs/development/python-modules/philipstv/default.nix
Normal file
73
pkgs/development/python-modules/philipstv/default.nix
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
poetry-core,
|
||||
poetry-dynamic-versioning,
|
||||
installShellFiles,
|
||||
pytestCheckHook,
|
||||
requests-mock,
|
||||
requests,
|
||||
pydantic,
|
||||
click,
|
||||
appdirs,
|
||||
stdenv,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "philipstv";
|
||||
version = "2.1.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bcyran";
|
||||
repo = "philipstv";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-BvQurZls9NjtHhTXLQ9t8fHkAF/QU/c6mmRvNmE0v90=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
poetry-core
|
||||
poetry-dynamic-versioning
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
requests
|
||||
pydantic
|
||||
click
|
||||
appdirs
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
requests-mock
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd philipstv \
|
||||
--bash <(_PHILIPSTV_COMPLETE=bash_source $out/bin/philipstv) \
|
||||
--zsh <(_PHILIPSTV_COMPLETE=zsh_source $out/bin/philipstv) \
|
||||
--fish <(_PHILIPSTV_COMPLETE=fish_source $out/bin/philipstv)
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "philipstv" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "CLI and library to control Philips Android-powered TVs";
|
||||
homepage = "https://github.com/bcyran/philipstv";
|
||||
changelog = "https://github.com/bcyran/philipstv/releases/tag/${version}";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "philipstv";
|
||||
maintainers = with lib.maintainers; [ bcyran ];
|
||||
};
|
||||
}
|
@ -18427,6 +18427,8 @@ with pkgs;
|
||||
|
||||
pgmodeler = qt6Packages.callPackage ../applications/misc/pgmodeler { };
|
||||
|
||||
philipstv = with python3Packages; toPythonApplication philipstv;
|
||||
|
||||
pjsip = darwin.apple_sdk_11_0.callPackage ../applications/networking/pjsip {
|
||||
inherit (darwin.apple_sdk_11_0.frameworks) AppKit CoreFoundation Security;
|
||||
};
|
||||
|
@ -10151,6 +10151,8 @@ self: super: with self; {
|
||||
|
||||
phik = callPackage ../development/python-modules/phik { };
|
||||
|
||||
philipstv = callPackage ../development/python-modules/philipstv { };
|
||||
|
||||
phone-modem = callPackage ../development/python-modules/phone-modem { };
|
||||
|
||||
phonenumbers = callPackage ../development/python-modules/phonenumbers { };
|
||||
|
Loading…
Reference in New Issue
Block a user