2020-05-10 10:26:22 +00:00
|
|
|
{ stdenv, lib, fetchurl, makeWrapper, python3, nixosTests }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bazarr";
|
2020-07-30 21:09:46 +00:00
|
|
|
version = "0.9";
|
2020-05-10 10:26:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/morpheus65535/bazarr/archive/v${version}.tar.gz";
|
2020-07-30 21:09:46 +00:00
|
|
|
sha256 = "106f0gagq81rwykppyfjc7q8ibq3j89lp08hqgbmcv26hxb89rbj";
|
2020-05-10 10:26:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/src
|
|
|
|
cp -r * $out/src
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
2020-07-30 21:09:46 +00:00
|
|
|
makeWrapper "${(python3.withPackages (ps: [ps.lxml ps.numpy])).interpreter}" \
|
2020-05-10 10:26:22 +00:00
|
|
|
$out/bin/bazarr \
|
|
|
|
--add-flags "$out/src/bazarr.py" \
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
smoke-test = nixosTests.bazarr;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Subtitle manager for Sonarr and Radarr";
|
|
|
|
homepage = "https://www.bazarr.media/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ xwvvvvwx ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|