evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / swspotify / default.nix
blob21bd1348525cb6f272ccf3b5a9e8073db406dde6
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   nativeBuildInputs = [ poetry-core ];
29   propagatedBuildInputs = [
30     dbus-python
31     flask
32     flask-cors
33     requests
34   ];
36   # Tests want to use Dbus
37   doCheck = false;
39   pythonImportsCheck = [ "SwSpotify" ];
41   meta = with lib; {
42     description = "Library to get the currently playing song and artist from Spotify";
43     homepage = "https://github.com/SwagLyrics/SwSpotify";
44     license = licenses.mit;
45     maintainers = with maintainers; [ siraben ];
46   };