1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 07:04:28 +00:00
nixpkgs/pkgs/servers/bazarr/default.nix
2021-02-03 22:48:58 +01:00

36 lines
891 B
Nix

{ stdenv, lib, fetchurl, makeWrapper, python3, nixosTests }:
stdenv.mkDerivation rec {
pname = "bazarr";
version = "0.9.0.8";
src = fetchurl {
url = "https://github.com/morpheus65535/bazarr/archive/v${version}.tar.gz";
sha256 = "sha256-Ecbx7FHpcEkcWBAKCtZPtQKX5ibvU4tajSJ5pyEboKc=";
};
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;
};
}