python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / swspotify / default.nix
blob7ed844e91d6a075d3ffc4c49138c975b5d6822b1
2   lib,
3   buildPythonPackage,
4   dbus-python,
5   fetchFromGitHub,
6   flask,
7   flask-cors,
8   poetry-core,
9   pythonOlder,
10   requests,
13 buildPythonPackage rec {
14   pname = "swspotify";
15   version = "1.2.3";
16   format = "pyproject";
18   disabled = pythonOlder "3.6";
20   src = fetchFromGitHub {
21     owner = "SwagLyrics";
22     repo = "SwSpotify";
23     rev = "v${version}";
24     hash = "sha256-xGLvc154xnje45Akf7H1qqQRUc03gGVt8AhGlkcP3kY=";
25   };
27   build-system = [ poetry-core ];
29   dependencies = [
30     dbus-python
31     flask
32     flask-cors
33     requests
34   ];
36   pythonRelaxDeps = [
37     "flask-cors"
38     "flask"
39   ];
41   # Tests want to use Dbus
42   doCheck = false;
44   pythonImportsCheck = [ "SwSpotify" ];
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   };