2021-06-16 18:09:27 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, websocket-client
|
|
|
|
}:
|
2020-03-05 10:25:37 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jellyfin-apiclient-python";
|
2021-03-24 08:33:46 +01:00
|
|
|
version = "1.7.2";
|
2020-03-05 10:25:37 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-03-10 12:39:27 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 08:33:46 +01:00
|
|
|
sha256 = "sha256-nSLUa9/jAT6XrHo77kV5HYBxPO/lhcWKqPfpES7ul9A=";
|
2020-03-05 10:25:37 +01:00
|
|
|
};
|
|
|
|
|
2021-06-16 18:09:27 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
websocket-client
|
|
|
|
];
|
2020-03-05 10:25:37 +01:00
|
|
|
|
2021-03-10 12:39:27 +01:00
|
|
|
doCheck = false; # no tests
|
2020-03-05 10:25:37 +01:00
|
|
|
pythonImportsCheck = [ "jellyfin_apiclient_python" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-03-18 08:26:01 +01:00
|
|
|
homepage = "https://github.com/jellyfin/jellyfin-apiclient-python";
|
2020-03-05 10:25:37 +01:00
|
|
|
description = "Python API client for Jellyfin";
|
2021-04-21 08:50:25 +02:00
|
|
|
license = licenses.gpl3Only;
|
2020-03-05 10:25:37 +01:00
|
|
|
maintainers = with maintainers; [ jojosch ];
|
|
|
|
};
|
|
|
|
}
|