summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-clementine-remote/default.nix
blob: 00abc62b207521e6aa34b2acd979d4afd89ef5f5 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  protobuf,
}:

buildPythonPackage rec {
  pname = "python-clementine-remote";
  version = "1.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jjmontesl";
    repo = "python-clementine-remote";
    tag = version;
    hash = "sha256-tPaxRBvt+tW4yV5Ap3YxMQxK3o7BJF3nP/wzBJeDgic=";
  };

  build-system = [ setuptools ];

  dependencies = [ protobuf ];

  # Project has no tests
  doCheck = false;

  env = {
    # https://github.com/jjmontesl/python-clementine-remote/pull/7
    PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
  };

  pythonImportsCheck = [ "clementineremote" ];

  meta = {
    description = "Python library and CLI for the Clementine Music Player remote protocol";
    homepage = "https://github.com/jjmontesl/python-clementine-remote";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}