From 645f612c40776d895048a9575792fe456a22bb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 29 May 2022 22:12:40 +0000 Subject: [PATCH] python3Packages.pyspotify: remove --- .../python-modules/pyspotify/default.nix | 45 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 pkgs/development/python-modules/pyspotify/default.nix diff --git a/pkgs/development/python-modules/pyspotify/default.nix b/pkgs/development/python-modules/pyspotify/default.nix deleted file mode 100644 index ae7e7468db95..000000000000 --- a/pkgs/development/python-modules/pyspotify/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, cffi -, libspotify -}: - -buildPythonPackage rec { - pname = "pyspotify"; - version = "2.1.3"; - - src = fetchFromGitHub { - owner = "mopidy"; - repo = "pyspotify"; - rev = "v${version}"; - sha256 = "sha256-CjIRwSlR5HPOJ9tp7lrdcDPiKH3p/PxvEJ8sqVD5s3Q="; - }; - - propagatedBuildInputs = [ cffi ]; - buildInputs = [ libspotify ]; - - # python zip complains about old timestamps - preConfigure = '' - find -print0 | xargs -0 touch - ''; - - postInstall = lib.optionalString stdenv.isDarwin '' - find "$out" -name _spotify.so -exec \ - install_name_tool -change \ - @loader_path/../Frameworks/libspotify.framework/libspotify \ - ${libspotify}/lib/libspotify.dylib \ - {} \; - ''; - - # There are no tests - doCheck = false; - - meta = with lib; { - homepage = "http://pyspotify.mopidy.com"; - description = "A Python interface to Spotify’s online music streaming service"; - license = licenses.unfree; - maintainers = with maintainers; [ lovek323 ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 2018b1b8b994..d2cb8187afa6 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -112,6 +112,7 @@ mapAliases ({ pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04 pyreadability = readability-lxml; # added 2022-05-24 pysmart-smartx = pysmart; # added 2021-10-22 + pyspotify = throw "pyspotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29 pytest_6 = pytest; # added 2022-02-10 pytestcov = pytest-cov; # added 2021-01-04 pytest-pep8 = pytestpep8; # added 2021-01-04 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cc133d1be498..a7a93c0af071 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8079,8 +8079,6 @@ in { pyspnego = callPackage ../development/python-modules/pyspnego { }; - pyspotify = callPackage ../development/python-modules/pyspotify { }; - pysptk = callPackage ../development/python-modules/pysptk { }; pysqlcipher3 = callPackage ../development/python-modules/pysqlcipher3 {