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

69 lines
1.8 KiB
Nix
Raw Normal View History

2018-12-23 16:30:57 +01:00
{ lib, python36 }:
2018-02-25 17:49:36 +01:00
2018-03-15 10:13:08 +01:00
# Flexget have been a trouble maker in the past,
# if you see flexget breaking when updating packages, don't worry.
# The current state is that we have no active maintainers for this package.
# -- Mic92
2018-02-25 17:49:36 +01:00
let
2018-12-23 16:30:57 +01:00
python' = python36.override { inherit packageOverrides; };
2018-02-25 17:49:36 +01:00
packageOverrides = self: super: {
2018-07-10 11:24:24 +02:00
guessit = super.guessit.overridePythonAttrs (old: rec {
2018-11-22 17:01:48 +01:00
version = "3.0.3";
2018-07-10 11:24:24 +02:00
src = old.src.override {
inherit version;
2018-11-22 17:01:48 +01:00
sha256 = "1q06b3k31bfb8cxjimpf1rkcrwnc596a9cppjw15minvdangl32r";
2018-07-10 11:24:24 +02:00
};
});
2018-02-25 17:49:36 +01:00
};
in
with python'.pkgs;
2017-05-01 10:06:20 +02:00
buildPythonApplication rec {
2018-02-25 17:49:36 +01:00
pname = "FlexGet";
2018-12-23 16:30:57 +01:00
version = "2.17.20";
2018-02-25 17:49:36 +01:00
src = fetchPypi {
inherit pname version;
2018-12-23 16:30:57 +01:00
sha256 = "a09ef9482ed54f7e96eb8b4d08c59687c5c43a3341c9d2675383693e6c3681c3";
};
2017-05-01 10:06:20 +02:00
postPatch = ''
2018-12-23 16:30:57 +01:00
# build for the correct python version
substituteInPlace setup.cfg --replace $'[bdist_wheel]\npython-tag = py27' ""
2018-02-25 17:49:36 +01:00
# remove dependency constraints
sed 's/==\([0-9]\.\?\)\+//' -i requirements.txt
2017-03-31 04:37:07 +02:00
'';
2017-05-01 10:06:20 +02:00
2018-02-25 17:49:36 +01:00
# ~400 failures
doCheck = false;
propagatedBuildInputs = [
2018-12-23 16:30:57 +01:00
# See https://github.com/Flexget/Flexget/blob/master/requirements.in
2018-02-25 17:49:36 +01:00
feedparser sqlalchemy pyyaml
2018-12-23 16:30:57 +01:00
beautifulsoup4 html5lib
2018-02-25 17:49:36 +01:00
PyRSS2Gen pynzb rpyc jinja2
2018-12-23 16:30:57 +01:00
requests dateutil jsonschema
2018-07-10 11:24:24 +02:00
pathpy guessit APScheduler
2017-01-04 09:34:16 +01:00
terminaltables colorclass
2018-02-25 17:49:36 +01:00
cherrypy flask flask-restful
flask-restplus flask-compress
2018-12-23 16:30:57 +01:00
flask_login flask-cors
pyparsing zxcvbn-python future
# Optional requirements
deluge-client
# Plugins
transmissionrpc
2018-12-23 16:30:57 +01:00
] ++ lib.optional (pythonOlder "3.4") pathlib;
2018-02-25 17:49:36 +01:00
meta = with lib; {
homepage = https://flexget.com/;
description = "Multipurpose automation tool for content like torrents";
2018-02-25 17:49:36 +01:00
license = licenses.mit;
2018-03-15 10:13:08 +01:00
maintainers = with maintainers; [ ];
};
2017-01-04 09:34:16 +01:00
}