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