2021-04-09 22:37:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, jsonrpc-async
|
|
|
|
, jsonrpc-websocket
|
|
|
|
}:
|
2021-03-21 07:09:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykodi";
|
2021-10-25 04:10:03 +00:00
|
|
|
version = "0.2.7";
|
|
|
|
format = "setuptools";
|
2021-03-21 07:09:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-25 04:10:03 +00:00
|
|
|
sha256 = "sha256-2fFkbZZ3RXMolaaGpkvvVfSYtNNB1bTsoRCin3GnVKM=";
|
2021-03-21 07:09:55 +00:00
|
|
|
};
|
|
|
|
|
2021-04-09 22:37:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
jsonrpc-async
|
|
|
|
jsonrpc-websocket
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
2021-03-21 07:09:55 +00:00
|
|
|
|
2021-10-25 04:10:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pykodi"
|
|
|
|
];
|
2021-03-21 07:09:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An async python interface for Kodi over JSON-RPC";
|
|
|
|
homepage = "https://github.com/OnFreund/PyKodi";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sephalon ];
|
|
|
|
};
|
|
|
|
}
|