From fc51ceec8af4b3c4a7ed43b2fed44f680d679acc Mon Sep 17 00:00:00 2001 From: Johannes Schleifenbaum Date: Thu, 5 Mar 2020 10:25:37 +0100 Subject: [PATCH] pythonPackages.jellyfin-apiclient-python: init at 1.4.0 --- .../jellyfin-apiclient-python/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/jellyfin-apiclient-python/default.nix diff --git a/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix b/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix new file mode 100644 index 000000000000..15aed1502b17 --- /dev/null +++ b/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchFromGitHub, requests +, websocket_client, pythonOlder }: + +buildPythonPackage rec { + pname = "jellyfin-apiclient-python"; + version = "1.4.0"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "iwalton3"; + repo = "jellyfin-apiclient-python"; + rev = "v${version}"; + sha256 = "0b4ij19xjwn0wm5076fx8n4phjbsfx84x9qdrwm8c2r3ld8w7hk4"; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7197787aafc9..b2e96c6c17ea 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -812,6 +812,8 @@ in { jc = callPackage ../development/python-modules/jc { }; + jellyfin-apiclient-python = callPackage ../development/python-modules/jellyfin-apiclient-python { }; + jira = callPackage ../development/python-modules/jira { }; jsonpath = callPackage ../development/python-modules/jsonpath { };