about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/librespot/default.nix
blob: 21a25729fa4bf5ceca92b047012050047149d049 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ lib
, buildPythonPackage
, fetchFromGitHub
, defusedxml
, protobuf
, pythonRelaxDepsHook
, websocket-client
, pyogg
, zeroconf
, requests
, pycryptodomex
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "librespot";
  version = "0.0.9";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "kokarare1212";
    repo = "librespot-python";
    rev = "v${version}";
    hash = "sha256-k9qVsxjRlUZ7vCBx00quiAR7S+YkfyoZiAKVnOOG4xM=";
  };

  nativeBuildInputs = [
    pythonRelaxDepsHook
  ];

  propagatedBuildInputs = [
    defusedxml
    protobuf
    pycryptodomex
    pyogg
    requests
    websocket-client
    zeroconf
  ];

  pythonRelaxDeps = [
    "protobuf"
    "pyogg"
    "requests"
    "zeroconf"
  ];

  # Doesn't include any tests
  doCheck = false;

  pythonImportsCheck = [
    "librespot"
  ];

  meta = with lib; {
    description = "Open Source Spotify Client";
    homepage = "https://github.com/kokarare1212/librespot-python";
    license = licenses.asl20;
    maintainers = with maintainers; [ onny ];
  };
}