pythonPackages.pyspotify: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler
2021-10-30 13:10:23 -07:00
committed by Jonathan Ringer
parent 697b1c1105
commit 9001546fab
@@ -1,6 +1,7 @@
{ lib, stdenv
{ lib
, stdenv
, buildPythonPackage
, fetchurl
, fetchFromGitHub
, cffi
, pkgs
}:
@@ -9,9 +10,11 @@ buildPythonPackage rec {
pname = "pyspotify";
version = "2.1.3";
src = fetchurl {
url = "https://github.com/mopidy/pyspotify/archive/v${version}.tar.gz";
sha256 = "1y1zqkqi9jz5m9bb2z7wmax7g40c1snm3c6di6b63726qrf26rb7";
src = fetchFromGitHub {
owner = "mopidy";
repo = "pyspotify";
rev = "v${version}";
sha256 = "sha256-CjIRwSlR5HPOJ9tp7lrdcDPiKH3p/PxvEJ8sqVD5s3Q=";
};
propagatedBuildInputs = [ cffi ];
@@ -34,11 +37,11 @@ buildPythonPackage rec {
doCheck = false;
meta = with lib; {
homepage = "http://pyspotify.mopidy.com";
homepage = "http://pyspotify.mopidy.com";
description = "A Python interface to Spotifys online music streaming service";
license = licenses.unfree;
license = licenses.unfree;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
platforms = platforms.unix;
};
}