From fc365c259e32ae08bec0c447cf6e1223de625732 Mon Sep 17 00:00:00 2001 From: bad Date: Wed, 6 Jul 2022 14:44:17 +0200 Subject: [PATCH] gnomecast: 1.9.11 -> 2022-04-23 The gnomecast pypi package is outdated(see: https://github.com/keredson/gnomecast/issues/178) and doesn't work with the PyChromecast version in nixpkgs(https://github.com/keredson/gnomecast/issues/171). --- pkgs/applications/video/gnomecast/default.nix | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/video/gnomecast/default.nix b/pkgs/applications/video/gnomecast/default.nix index 635d91ca54e22..6e41dcb7b8e37 100644 --- a/pkgs/applications/video/gnomecast/default.nix +++ b/pkgs/applications/video/gnomecast/default.nix @@ -1,19 +1,28 @@ -{ stdenv, lib, python3Packages, gtk3, gobject-introspection, ffmpeg, wrapGAppsHook }: +{ stdenv, lib, python3Packages, fetchFromGitHub, gtk3, gobject-introspection, ffmpeg, wrapGAppsHook }: with python3Packages; buildPythonApplication rec { pname = "gnomecast"; - version = "1.9.11"; + version = "unstable-2022-04-23"; - src = fetchPypi { - inherit pname version; - sha256 = "4d8cd7a71f352137252c5a9ee13475bd67fb99594560ecff1efb0f718d8bbaac"; + src = fetchFromGitHub { + owner = "keredson"; + repo = "gnomecast"; + rev = "d42d8915838b01c5cadacb322909e08ffa455d4f"; + sha256 = "sha256-CJpbBuRzEjWb8hsh3HMW4bZA7nyDAwjrERCS5uGdwn8="; }; nativeBuildInputs = [ wrapGAppsHook ]; propagatedBuildInputs = [ - pychromecast bottle pycaption paste html5lib pygobject3 dbus-python - gtk3 gobject-introspection + pychromecast + bottle + pycaption + paste + html5lib + pygobject3 + dbus-python + gtk3 + gobject-introspection ]; # NOTE: gdk-pixbuf setup hook does not run with strictDeps