1 { lib, stdenv, fetchFromGitHub, python3, makeWrapper, libarchive }:
4 pythonEnv = python3.withPackages(ps: with ps; [ cheetah3 lxml ]);
5 in stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
12 rev = "release_${version}";
13 hash = "sha256-dgaSFTrBg3CM320M75AA2qQaKDkh3LycNqNgO8ewSrw=";
17 ./patches/override-python-version-check.patch
23 nativeBuildInputs = [ makeWrapper ];
24 buildInputs = [ pythonEnv libarchive ];
27 mkdir -p $out/bin $out/opt/sickgear
28 cp -R {autoProcessTV,gui,lib,sickgear,sickgear.py} $out/opt/sickgear/
30 makeWrapper $out/opt/sickgear/sickgear.py $out/bin/sickgear \
31 --suffix PATH : ${lib.makeBinPath [ libarchive ]}
35 description = "Most reliable stable TV fork of the great Sick-Beard to fully automate TV enjoyment with innovation";
36 mainProgram = "sickgear";
37 license = licenses.gpl3;
38 homepage = "https://github.com/SickGear/SickGear";
39 maintainers = with lib.maintainers; [ rembo10 ];