My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/applications/networking/flexget/default.nix

47 lines
1.2 KiB

{ lib
, pythonPackages
, fetchurl
, transmission
, deluge
, config
}:
with pythonPackages;
buildPythonPackage rec {
version = "2.8.17";
name = "FlexGet-${version}";
src = fetchurl {
url = "https://github.com/Flexget/Flexget/archive/${version}.tar.gz";
sha256 = "925e6bf62dfae73194dbf8b963ff2b60fb500f2457463b744086706da94dabd7";
};
# Requires vcrpy
doCheck = false;
checkPhase = ''
py.test
'';
buildInputs = [ pytest mock ];
propagatedBuildInputs = [
feedparser sqlalchemy pyyaml
beautifulsoup4 html5lib pyrss2gen pynzb
rpyc jinja2 requests2 dateutil jsonschema
pathpy pathlib guessit apscheduler
terminaltables colorclass
cherrypy flask flask-restful flask-restplus
flask-compress flask_login flask-cors
pyparsing safe future ]
# enable deluge and transmission plugin support, if they're installed
++ lib.optional (config.deluge or false) deluge
++ lib.optional (transmission != null) transmissionrpc;
meta = {
homepage = http://flexget.com/;
description = "Multipurpose automation tool for content like torrents";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ domenkozar tari ];
};
}