nixpkgs/pkgs/applications/networking/flexget/default.nix

68 lines
1.7 KiB
Nix
Raw Normal View History

2018-02-25 16:49:36 +00:00
{ lib, python
, delugeSupport ? true, deluge ? null
}:
2018-02-25 16:49:36 +00:00
assert delugeSupport -> deluge != null;
let
python' = python.override { inherit packageOverrides; };
packageOverrides = self: super: {
sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec {
version = "1.1.10";
src = old.src.override {
inherit version;
sha256 = "1lvb14qclrx0qf6qqx8a8hkx5akk5lk3dvcqz8760v9hya52pnfv";
};
});
};
in
with python'.pkgs;
2017-05-01 08:06:20 +00:00
buildPythonApplication rec {
2018-02-25 16:49:36 +00:00
pname = "FlexGet";
version = "2.13.5";
2018-02-25 16:49:36 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1lkmxwy7k4zlcqpigwk8skc2zi8a70vrw21pz80wvmf9yg0wc9z9";
};
2017-05-01 08:06:20 +00:00
postPatch = ''
2018-02-25 16:49:36 +00:00
# remove dependency constraints
sed 's/==\([0-9]\.\?\)\+//' -i requirements.txt
2017-03-31 02:37:07 +00:00
'';
2017-05-01 08:06:20 +00:00
2018-02-25 16:49:36 +00:00
# ~400 failures
doCheck = false;
propagatedBuildInputs = [
2018-02-25 16:49:36 +00:00
feedparser sqlalchemy pyyaml
chardet beautifulsoup4 html5lib
PyRSS2Gen pynzb rpyc jinja2
jsonschema requests dateutil
pathpy guessit_2_0 APScheduler
2017-01-04 08:34:16 +00:00
terminaltables colorclass
2018-02-25 16:49:36 +00:00
cherrypy flask flask-restful
flask-restplus flask-compress
flask_login flask-cors safe
pyparsing future zxcvbn-python
werkzeug tempora cheroot rebulk
portend transmissionrpc aniso8601
babelfish certifi click futures
idna itsdangerous markupsafe
plumbum pytz six tzlocal urllib3
webencodings werkzeug zxcvbn-python
] ++ lib.optional (pythonOlder "3.4") pathlib
2018-02-25 16:49:36 +00:00
++ lib.optional delugeSupport deluge;
2018-02-25 16:49:36 +00:00
meta = with lib; {
homepage = https://flexget.com/;
description = "Multipurpose automation tool for content like torrents";
2018-02-25 16:49:36 +00:00
license = licenses.mit;
maintainers = with maintainers; [ domenkozar tari ];
};
2017-01-04 08:34:16 +00:00
}