Merge pull request #172264 from dotlambda/pysabnzbd-init

home-assistant: support sabnzbd component
This commit is contained in:
Fabian Affolter 2022-05-10 08:44:30 +02:00 committed by GitHub
commit f6db7459cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
}:
buildPythonPackage rec {
pname = "pysabnzbd";
version = "1.1.1";
src = fetchFromGitHub {
owner = "jeradM";
repo = "pysabnzbd";
rev = "8e6cd1869c8cc99a4560ea1b178f0a1efd89e460"; # tag is missing
hash = "sha256-Ubl+kdcjMm1A7pa3Q5G+fFBwPIxA375Ci04/vVyUl+A=";
};
propagatedBuildInputs = [
aiohttp
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [ "pysabnzbd" ];
meta = {
description = "Python wrapper for SABnzbd API";
homepage = "https://github.com/jeradM/pysabnzbd";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View file

@ -2246,7 +2246,8 @@
"russound_rnet" = ps: with ps; [
]; # missing inputs: russound
"sabnzbd" = ps: with ps; [
]; # missing inputs: pysabnzbd
pysabnzbd
];
"safe_mode" = ps: with ps; [
pyturbojpeg
aiohttp-cors
@ -3596,6 +3597,7 @@
"rss_feed_template"
"rtsp_to_webrtc"
"ruckus_unleashed"
"sabnzbd"
"safe_mode"
"samsungtv"
"scene"

View file

@ -6432,6 +6432,8 @@ in {
pyrogram = callPackage ../development/python-modules/pyrogram { };
pysabnzbd = callPackage ../development/python-modules/pysabnzbd { };
pysbd = callPackage ../development/python-modules/pysbd { };
pyshark = callPackage ../development/python-modules/pyshark { };