@@ -1,29 +1,31 @@
1−{ lib, buildPythonPackage, fetchFromGitHub, requests, flask-cors, dbus-python, pytestCheckHook, mock, isPy27 }:
1+{ lib, stdenv, buildPythonPackage, fetchFromGitHub, poetry-core, requests
2+, pytestCheckHook, flask, flask-cors, dbus-python, mock, isPy27 }:
23
34buildPythonPackage rec {
45 pname = "SwSpotify";
5− version = "1.2.1";
6+ version = "1.2.2";
67 disabled = isPy27;
78
89 src = fetchFromGitHub {
910 owner = "SwagLyrics";
1011 repo = "SwSpotify";
1112 rev = "v${version}";
12− sha256 = "0jxcvy8lw8kpjbl4q6mi11164pvi0w9m9p76bxj2m7i7s5p4dxd4";
13+ sha256 = "sha256-571knnY8LegIbqyPeKUfl+d0suTWAMQHYLN7edKFNdI=";
1314 };
1415
1516 propagatedBuildInputs = [
16− requests flask-cors dbus-python
17+ requests flask flask-cors dbus-python
1718 ];
1819
1920 preConfigure = ''
2021 substituteInPlace setup.py \
21− --replace 'requests>=2.24.0' 'requests~=2.23' \
22− --replace 'flask-cors==3.0.8' 'flask-cors'
22+ --replace 'flask==2.0.1' 'flask'
2323 '';
2424
25+ doCheck = !stdenv.isDarwin;
26+
2527 checkPhase = ''
26− pytest tests/test_spotify.py::LinuxTests
28+ pytest tests/test_spotify.py::${if stdenv.isDarwin then "DarwinTests" else "LinuxTests"}
2729 '';
2830
2931 checkInputs = [ pytestCheckHook mock ];
@@ -35,6 +37,6 @@ buildPythonPackage rec {
3537 description = "Library to get the currently playing song and artist from Spotify";
3638 license = licenses.mit;
3739 maintainers = with maintainers; [ siraben ];
38− platforms = platforms.linux;
40+ platforms = platforms.unix;
3941 };
4042}