about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tunigo/default.nix
blob: 034aed0251b31cf00af7f528eb0b83974751a409 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  requests,
  mock,
  responses,
  pytest,
}:

buildPythonPackage rec {
  pname = "tunigo";
  version = "1.0.0";
  format = "setuptools";

  propagatedBuildInputs = [ requests ];

  src = fetchFromGitHub {
    owner = "trygveaa";
    repo = "python-tunigo";
    rev = "v${version}";
    sha256 = "07q9girrjjffzkn8xj4l3ynf9m4psi809zf6f81f54jdb330p2fs";
  };

  nativeCheckInputs = [
    mock
    responses
    pytest
  ];

  checkPhase = ''
    py.test
  '';

  meta = with lib; {
    description = "Python API for the browse feature of Spotify";
    homepage = "https://github.com/trygveaa/python-tunigo";
    license = licenses.asl20;
  };
}