From c4762eacc3167e5bc49d7d1442f615ea6274bef1 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 30 Oct 2021 16:54:29 +0200 Subject: [PATCH] pythonPackages.livestreamer-curses: switch to fetchFromGitHub --- .../python-modules/livestreamer-curses/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/livestreamer-curses/default.nix b/pkgs/development/python-modules/livestreamer-curses/default.nix index 5f17a7006177..9fd889592ea0 100644 --- a/pkgs/development/python-modules/livestreamer-curses/default.nix +++ b/pkgs/development/python-modules/livestreamer-curses/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchurl +, fetchFromGitHub , isPyPy , livestreamer }: @@ -10,9 +10,11 @@ buildPythonPackage rec { pname = "livestreamer-curses"; disabled = isPyPy; - src = fetchurl { - url = "https://github.com/gapato/livestreamer-curses/archive/v${version}.tar.gz"; - sha256 = "1v49sym6mrci9dxy0a7cpbp4bv6fg2ijj6rwk4wzg18c2x4qzkhn"; + src = fetchFromGitHub { + owner = "gapato"; + repo = "livestreamer-curses"; + rev = "v1.5.2"; + sha256 = "sha256-Pi0PIOUhMMAWft9ackB04IgF6DyPrXppNqyVjozIjN4="; }; propagatedBuildInputs = [ livestreamer ];