2020-03-05 09:25:37 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, requests
|
|
|
|
, websocket_client, pythonOlder }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jellyfin-apiclient-python";
|
2020-08-09 07:15:24 +01:00
|
|
|
version = "1.6.1";
|
2020-03-05 09:25:37 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iwalton3";
|
|
|
|
repo = "jellyfin-apiclient-python";
|
|
|
|
rev = "v${version}";
|
2020-08-09 07:15:24 +01:00
|
|
|
sha256 = "0f7czq83ic22fz1vnf0cavb7l3grcxxd5yyw9wcjz3g1j2d76735";
|
2020-03-05 09:25:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests websocket_client ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "jellyfin_apiclient_python" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/iwalton3/jellyfin-apiclient-python";
|
|
|
|
description = "Python API client for Jellyfin";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jojosch ];
|
|
|
|
};
|
|
|
|
}
|