2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
2021-12-24 04:21:11 +00:00
|
|
|
, certifi
|
2021-06-28 23:13:55 +00:00
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, websocket-client
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jellyfin-apiclient-python";
|
2021-12-24 04:21:11 +00:00
|
|
|
version = "1.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-24 04:21:11 +00:00
|
|
|
sha256 = "t2XmZ7rsrZq943lzRDrqzsY/djFNjFbkEYeHeA2AViI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-12-24 04:21:11 +00:00
|
|
|
certifi
|
2021-06-28 23:13:55 +00:00
|
|
|
requests
|
|
|
|
six
|
|
|
|
websocket-client
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
doCheck = false; # no tests
|
2020-04-24 23:36:52 +00:00
|
|
|
pythonImportsCheck = [ "jellyfin_apiclient_python" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-03-20 04:20:00 +00:00
|
|
|
homepage = "https://github.com/jellyfin/jellyfin-apiclient-python";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python API client for Jellyfin";
|
2021-04-22 02:08:21 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ jojosch ];
|
|
|
|
};
|
|
|
|
}
|