1{ lib
2, buildPythonPackage
3, defusedxml
4, fetchFromGitHub
5, protobuf
6, pycryptodomex
7, pyogg
8, pytestCheckHook
9, pythonRelaxDepsHook
10, requests
11, websocket-client
12, zeroconf
13}:
14
15buildPythonPackage rec {
16 pname = "librespot";
17 version = "0.0.9";
18 format = "setuptools";
19
20 src = fetchFromGitHub {
21 owner = "kokarare1212";
22 repo = "librespot-python";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-k9qVsxjRlUZ7vCBx00quiAR7S+YkfyoZiAKVnOOG4xM=";
25 };
26
27 pythonRelaxDeps = true;
28
29 nativeBuildInputs = [
30 pythonRelaxDepsHook
31 ];
32
33 propagatedBuildInputs = [
34 defusedxml
35 protobuf
36 pycryptodomex
37 pyogg
38 requests
39 websocket-client
40 zeroconf
41 ];
42
43 # Doesn't include any tests
44 doCheck = false;
45
46 pythonImportsCheck = [
47 "librespot"
48 ];
49
50 meta = with lib; {
51 description = "Open Source Spotify Client";
52 homepage = "https://github.com/kokarare1212/librespot-python";
53 changelog = "https://github.com/kokarare1212/librespot-python/releases/tag/v${version}";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ onny ];
56 };
57}