2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, jsonrpc-async
|
|
|
|
, jsonrpc-websocket
|
|
|
|
}:
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pykodi";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "0.2.7";
|
|
|
|
format = "setuptools";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-2fFkbZZ3RXMolaaGpkvvVfSYtNNB1bTsoRCin3GnVKM=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
jsonrpc-async
|
|
|
|
jsonrpc-websocket
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
2021-03-20 04:20:00 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pykodi"
|
|
|
|
];
|
2021-03-20 04:20:00 +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 ];
|
|
|
|
};
|
|
|
|
}
|