1{ lib, buildPythonPackage, fetchFromGitHub, requests, mock, responses, pytest }:
2
3buildPythonPackage rec {
4 pname = "tunigo";
5 version = "1.0.0";
6
7 propagatedBuildInputs = [ requests ];
8
9 src = fetchFromGitHub {
10 owner = "trygveaa";
11 repo = "python-tunigo";
12 rev = "v${version}";
13 sha256 = "07q9girrjjffzkn8xj4l3ynf9m4psi809zf6f81f54jdb330p2fs";
14 };
15
16 nativeCheckInputs = [ mock responses pytest ];
17
18 checkPhase = ''
19 py.test
20 '';
21
22 meta = with lib; {
23 description = "Python API for the browse feature of Spotify";
24 homepage = "https://github.com/trygveaa/python-tunigo";
25 license = licenses.asl20;
26 };
27}