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