From e520cfc0fcae09ddfbf58608fc0b19e97145c036 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 Sep 2024 17:05:06 +0200 Subject: [PATCH] python3Packages.jellyfin-apiclient-python: 1.9.2 -> 1.10.0 --- .../jellyfin-apiclient-python/default.nix | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix b/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix index 739a0937a4aa..9fb7c6ccbd3b 100644 --- a/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix +++ b/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix @@ -2,34 +2,39 @@ lib, buildPythonPackage, certifi, - fetchPypi, + fetchFromGitHub, pythonOlder, + setuptools, requests, urllib3, websocket-client, + pytestCheckHook, }: buildPythonPackage rec { pname = "jellyfin-apiclient-python"; - version = "1.9.2"; - format = "setuptools"; + version = "1.10.0"; + pyproject = true; disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - hash = "sha256-vMzZeoiWli3HjM8Dqr5RhNfR7gcjPqoXG3b/aNNlx2Q="; + src = fetchFromGitHub { + owner = "jellyfin"; + repo = "jellyfin-apiclient-python"; + rev = "refs/tags/v${version}"; + hash = "sha256-H1FqypNuVIZ17cFdNDEmmKICswxJkUGq2LhlingbCVk="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ certifi requests urllib3 websocket-client ]; - # Module has no test - doCheck = false; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "jellyfin_apiclient_python" ];