biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / video / gnomecast / default.nix
blob9d0bfa9e966e3b18ad63b3c5d6109dc46a1417ea
1 { stdenv, lib, python3Packages, fetchFromGitHub, gtk3, gobject-introspection, ffmpeg, wrapGAppsHook }:
3 with python3Packages;
4 buildPythonApplication rec {
5   pname = "gnomecast";
6   version = "unstable-2022-04-23";
8   src = fetchFromGitHub {
9     owner = "keredson";
10     repo = "gnomecast";
11     rev = "d42d8915838b01c5cadacb322909e08ffa455d4f";
12     sha256 = "sha256-CJpbBuRzEjWb8hsh3HMW4bZA7nyDAwjrERCS5uGdwn8=";
13   };
15   nativeBuildInputs = [ wrapGAppsHook ];
16   propagatedBuildInputs = [
17     pychromecast
18     bottle
19     pycaption
20     paste
21     html5lib
22     pygobject3
23     dbus-python
24     gtk3
25     gobject-introspection
26   ];
28   # NOTE: gdk-pixbuf setup hook does not run with strictDeps
29   # https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-hooks-gobject-introspection
30   strictDeps = false;
32   preFixup = ''
33     gappsWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ ffmpeg ]})
34   '';
36   # no tests
37   doCheck = false;
39   meta = with lib; {
40     description = "A native Linux GUI for Chromecasting local files";
41     homepage = "https://github.com/keredson/gnomecast";
42     license = with licenses; [ gpl3 ];
43     broken = stdenv.isDarwin;
44     mainProgram = "gnomecast";
45   };