1{
2 lib,
3 buildPythonPackage,
4 dbus-python,
5 fetchFromGitHub,
6 flask,
7 flask-cors,
8 poetry-core,
9 pythonOlder,
10 requests,
11}:
12
13buildPythonPackage rec {
14 pname = "swspotify";
15 version = "1.2.3";
16 format = "pyproject";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "SwagLyrics";
22 repo = "SwSpotify";
23 rev = "v${version}";
24 hash = "sha256-xGLvc154xnje45Akf7H1qqQRUc03gGVt8AhGlkcP3kY=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 dbus-python
31 flask
32 flask-cors
33 requests
34 ];
35
36 pythonRelaxDeps = [
37 "flask-cors"
38 "flask"
39 ];
40
41 # Tests want to use Dbus
42 doCheck = false;
43
44 pythonImportsCheck = [ "SwSpotify" ];
45
46 meta = {
47 description = "Library to get the currently playing song and artist from Spotify";
48 homepage = "https://github.com/SwagLyrics/SwSpotify";
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [ siraben ];
51 };
52}