From f3c0ece56c7ee0792d2678ceed0a5e96ac14336c Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sat, 30 Oct 2021 16:54:11 +0200 Subject: [PATCH] pythonPackages.livestreamer: switch to fetchFromGitHub --- pkgs/development/python-modules/livestreamer/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/livestreamer/default.nix b/pkgs/development/python-modules/livestreamer/default.nix index b77cf430717c..03ab7ebd8327 100644 --- a/pkgs/development/python-modules/livestreamer/default.nix +++ b/pkgs/development/python-modules/livestreamer/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , pkgs +, fetchFromGitHub , isPyPy , pycrypto , requests @@ -14,9 +15,11 @@ buildPythonPackage rec { pname = "livestreamer"; disabled = isPyPy; - src = pkgs.fetchurl { - url = "https://github.com/chrippa/livestreamer/archive/v${version}.tar.gz"; - sha256 = "1fp3d3z2grb1ls97smjkraazpxnvajda2d1g1378s6gzmda2jvjd"; + src = fetchFromGitHub { + owner = "chrippa"; + repo = "livestreamer"; + rev = "v1.12.2"; + sha256 = "sha256-PqqyBh+oMmu7Ynly3fqx/+6mQYX+6SpI0Okj2O+YLz0="; }; nativeBuildInputs = [ pkgs.makeWrapper ];