mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
36 lines
892 B
Nix
36 lines
892 B
Nix
{ stdenv, lib, fetchurl, makeWrapper, python3, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bazarr";
|
|
version = "0.9.0.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/morpheus65535/bazarr/archive/v${version}.tar.gz";
|
|
sha256 = "1lvldklj61hg9h1m0ixaa4zcf4ggdj6wf4myhwwampq4bmr2havj";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/src
|
|
cp -r * $out/src
|
|
|
|
mkdir -p $out/bin
|
|
makeWrapper "${(python3.withPackages (ps: [ps.lxml ps.numpy])).interpreter}" \
|
|
$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;
|
|
};
|
|
}
|