python39Packages.pyspotify: cleanup

This commit is contained in:
Sandro Jäckel 2021-10-31 13:26:41 +01:00
parent ee62f3ea0a
commit c1a746083b
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -3,7 +3,7 @@
, buildPythonPackage
, fetchFromGitHub
, cffi
, pkgs
, libspotify
}:
buildPythonPackage rec {
@ -18,7 +18,7 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ cffi ];
buildInputs = [ pkgs.libspotify ];
buildInputs = [ libspotify ];
# python zip complains about old timestamps
preConfigure = ''
@ -29,7 +29,7 @@ buildPythonPackage rec {
find "$out" -name _spotify.so -exec \
install_name_tool -change \
@loader_path/../Frameworks/libspotify.framework/libspotify \
${pkgs.libspotify}/lib/libspotify.dylib \
${libspotify}/lib/libspotify.dylib \
{} \;
'';
@ -41,7 +41,5 @@ buildPythonPackage rec {
description = "A Python interface to Spotifys online music streaming service";
license = licenses.unfree;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}