1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 protobuf,
7}:
8
9buildPythonPackage rec {
10 pname = "python-clementine-remote";
11 version = "1.0.3";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "jjmontesl";
16 repo = "python-clementine-remote";
17 tag = version;
18 hash = "sha256-tPaxRBvt+tW4yV5Ap3YxMQxK3o7BJF3nP/wzBJeDgic=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ protobuf ];
24
25 # Project has no tests
26 doCheck = false;
27
28 env = {
29 # https://github.com/jjmontesl/python-clementine-remote/pull/7
30 PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
31 };
32
33 pythonImportsCheck = [ "clementineremote" ];
34
35 meta = {
36 description = "Python library and CLI for the Clementine Music Player remote protocol";
37 homepage = "https://github.com/jjmontesl/python-clementine-remote";
38 license = lib.licenses.asl20;
39 maintainers = [ lib.maintainers.jamiemagee ];
40 };
41}