Merge pull request #172264 from dotlambda/pysabnzbd-init

home-assistant: support sabnzbd component
main
Fabian Affolter 2 years ago committed by GitHub
commit f6db7459cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 33
      pkgs/development/python-modules/pysabnzbd/default.nix
  2. 4
      pkgs/servers/home-assistant/component-packages.nix
  3. 2
      pkgs/top-level/python-packages.nix

@ -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…
Cancel
Save