Merge pull request #128125 from dotlambda/vilfo-api-client-init
home-assistant: support vilfo component
This commit is contained in:
commit
4d420f27eb
51
pkgs/development/python-modules/vilfo-api-client/default.nix
Normal file
51
pkgs/development/python-modules/vilfo-api-client/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools-scm
|
||||
, getmac
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vilfo-api-client";
|
||||
version = "0.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ManneW";
|
||||
repo = "vilfo-api-client-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "1gy5gpsg99rcm1cc3m30232za00r9i46sp74zpd12p3vzz1wyyqf";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "get-mac" "getmac"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
getmac
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "vilfo" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple wrapper client for the Vilfo router API";
|
||||
homepage = "https://github.com/ManneW/vilfo-api-client-python";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
@ -927,7 +927,7 @@
|
||||
"vesync" = ps: with ps; [ pyvesync ];
|
||||
"viaggiatreno" = ps: with ps; [ ];
|
||||
"vicare" = ps: with ps; [ pyvicare ];
|
||||
"vilfo" = ps: with ps; [ ]; # missing inputs: vilfo-api-client
|
||||
"vilfo" = ps: with ps; [ vilfo-api-client ];
|
||||
"vivotek" = ps: with ps; [ ]; # missing inputs: libpyvivotek
|
||||
"vizio" = ps: with ps; [ pyvizio ];
|
||||
"vlc" = ps: with ps; [ python-vlc ];
|
||||
|
@ -710,6 +710,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"verisure"
|
||||
"version"
|
||||
"vesync"
|
||||
"vilfo"
|
||||
"vizio"
|
||||
"voicerss"
|
||||
"volumio"
|
||||
|
@ -8939,6 +8939,8 @@ in {
|
||||
|
||||
viewstate = callPackage ../development/python-modules/viewstate { };
|
||||
|
||||
vilfo-api-client = callPackage ../development/python-modules/vilfo-api-client { };
|
||||
|
||||
vincenty = callPackage ../development/python-modules/vincenty { };
|
||||
|
||||
vine = callPackage ../development/python-modules/vine { };
|
||||
|
Loading…
Reference in New Issue
Block a user