sabnbzd: 3.7.2 -> 4.0.3 (#248411)
* sabctools: init at 7.0.2 * sabnbzd: 3.7.2 -> 4.0.3
This commit is contained in:
parent
393fe6ccd0
commit
d8b50ae319
3 changed files with 59 additions and 7 deletions
27
pkgs/development/python-modules/sabctools/default.nix
Normal file
27
pkgs/development/python-modules/sabctools/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
sabnzbd,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "sabctools";
|
||||
version = "7.0.2"; # needs to match version sabnzbd expects, e.g. https://github.com/sabnzbd/sabnzbd/blob/4.0.x/requirements.txt#L3
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-AB5/McuOIDkhu7rtb3nFaqOTx3zwm92+3NEnH5HjzBo=";
|
||||
};
|
||||
|
||||
pythonImportsCheck = ["sabctools"];
|
||||
|
||||
passthru.tests = {inherit sabnzbd;};
|
||||
|
||||
meta = with lib; {
|
||||
description = "C implementations of functions for use within SABnzbd";
|
||||
homepage = "https://github.com/sabnzbd/sabctools";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [adamcstephens];
|
||||
};
|
||||
}
|
|
@ -1,37 +1,60 @@
|
|||
{ lib, stdenv
|
||||
, coreutils
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, par2cmdline
|
||||
, unzip
|
||||
, unrar
|
||||
, p7zip
|
||||
, util-linux
|
||||
, makeWrapper
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
let
|
||||
pythonEnv = python3.withPackages(ps: with ps; [
|
||||
babelfish
|
||||
cffi
|
||||
chardet
|
||||
cheetah3
|
||||
cheroot
|
||||
cherrypy
|
||||
cryptography
|
||||
configobj
|
||||
cryptography
|
||||
feedparser
|
||||
sabyenc3
|
||||
puremagic
|
||||
guessit
|
||||
jaraco-classes
|
||||
jaraco-collections
|
||||
jaraco-context
|
||||
jaraco-functools
|
||||
jaraco-text
|
||||
more-itertools
|
||||
notify2
|
||||
orjson
|
||||
portend
|
||||
puremagic
|
||||
pycparser
|
||||
pysocks
|
||||
python-dateutil
|
||||
pytz
|
||||
rebulk
|
||||
sabctools
|
||||
sabyenc3
|
||||
sgmllib3k
|
||||
six
|
||||
tempora
|
||||
zc_lockfile
|
||||
]);
|
||||
path = lib.makeBinPath [ par2cmdline unrar unzip p7zip ];
|
||||
path = lib.makeBinPath [ coreutils par2cmdline unrar unzip p7zip util-linux ];
|
||||
in stdenv.mkDerivation rec {
|
||||
version = "3.7.2";
|
||||
version = "4.0.3";
|
||||
pname = "sabnzbd";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-1gGvdc6TJrkFIrN+TUL/7EejApgpgAQxnQbp8RMknHQ=";
|
||||
sha256 = "sha256-6d/UGFuySgKvpqhGjzl007GS9yMgfgI3YwTxkxsCzew=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
@ -59,6 +82,6 @@ in stdenv.mkDerivation rec {
|
|||
homepage = "https://sabnzbd.org";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with lib.maintainers; [ fridh jojosch ];
|
||||
maintainers = with lib.maintainers; [ fridh jojosch adamcstephens ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11268,6 +11268,8 @@ self: super: with self; {
|
|||
|
||||
s3-credentials = callPackage ../development/python-modules/s3-credentials { };
|
||||
|
||||
sabctools = callPackage ../development/python-modules/sabctools { };
|
||||
|
||||
sabyenc3 = callPackage ../development/python-modules/sabyenc3 { };
|
||||
|
||||
sabyenc = callPackage ../development/python-modules/sabyenc { };
|
||||
|
|
Loading…
Reference in a new issue