Skip to content

Commit c248ed4

Browse files
authored
Merge pull request NixOS#160766 from siraben/swspotify-update
python3Packages.swspotify: 1.2.2 -> 1.2.3
2 parents d7c40d0 + 8e1c01d commit c248ed4

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

pkgs/development/python-modules/swspotify/default.nix

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, requests
2-
, pytestCheckHook, flask, flask-cors, dbus-python, mock, isPy27 }:
2+
, pytestCheckHook, flask, flask-cors, dbus-python, mock, isPy27
3+
, poetry-core }:
34

45
buildPythonPackage rec {
56
pname = "SwSpotify";
6-
version = "1.2.2";
7+
version = "1.2.3";
78
disabled = isPy27;
9+
format = "pyproject";
810

911
src = fetchFromGitHub {
1012
owner = "SwagLyrics";
1113
repo = "SwSpotify";
1214
rev = "v${version}";
13-
sha256 = "sha256-571knnY8LegIbqyPeKUfl+d0suTWAMQHYLN7edKFNdI=";
15+
sha256 = "sha256-xGLvc154xnje45Akf7H1qqQRUc03gGVt8AhGlkcP3kY=";
1416
};
1517

16-
propagatedBuildInputs = [
17-
requests flask flask-cors dbus-python
18-
];
18+
nativeBuildInputs = [ poetry-core ];
1919

20-
postPatch = ''
21-
substituteInPlace setup.py \
22-
--replace 'flask==2.0.1' 'flask'
23-
'';
20+
propagatedBuildInputs = [ requests flask flask-cors ]
21+
++ lib.optionals stdenv.isLinux [ dbus-python ];
2422

2523
doCheck = !stdenv.isDarwin;
2624

0 commit comments

Comments
 (0)