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