Merge pull request #172264 from dotlambda/pysabnzbd-init
home-assistant: support sabnzbd component
This commit is contained in:
commit
f6db7459cc
3 changed files with 38 additions and 1 deletions
33
pkgs/development/python-modules/pysabnzbd/default.nix
Normal file
33
pkgs/development/python-modules/pysabnzbd/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue