evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / gn / gnomecast / package.nix
blobbea389ccc5342054d41fdb8c12c9d576da0c05a5
1 { stdenv, lib, python3Packages, fetchFromGitHub, gtk3, gobject-introspection, ffmpeg, wrapGAppsHook3 }:
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 = [ wrapGAppsHook3 ];
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 = "Native Linux GUI for Chromecasting local files";
41     homepage = "https://github.com/keredson/gnomecast";
42     license = with licenses; [ gpl3 ];
43     broken = stdenv.hostPlatform.isDarwin;
44     mainProgram = "gnomecast";
45   };