summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/ham/deps/pykodi.nix
blob: 85a541f8abb0320bd53fb79daa20e7783ff8aa1c (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
{ lib
, buildPythonPackage
, fetchPypi
, jsonrpc-async
, jsonrpc-websocket
, aiohttp
}:

buildPythonPackage rec {
  pname = "pykodi";
  version = "0.2.2";

  disabled = false; # requires python version >=3.7.0

  src = fetchPypi {
    inherit pname version;
    sha256 = "43e7036a00a76f65c34dc5e7f1065a3ef071eea7619c2e6228e521b638e640bc";
  };

  # # Package conditions to handle
  # # might have to sed setup.py and egg.info in patchPhase
  # # sed -i "s/<package>.../<package>/"
  # jsonrpc-async>=1.1.0
  # jsonrpc-websocket>=1.2.1
  propagatedBuildInputs = [
    jsonrpc-async
    jsonrpc-websocket
    aiohttp
  ];

  meta = with lib; {
    description = "An async python interface for Kodi over JSON-RPC";
    homepage = https://github.com/OnFreund/PyKodi;
    license = licenses.mit;
    # maintainers = [ maintainers. ];
  };
}