From adaab8b6ae45c3be14de86f235a42ec17ef88891 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 4 Aug 2024 22:56:43 +0200 Subject: [PATCH] python312Packages.aiojellyfin: init at 0.10.0 Simple asyncio library for accessing Jellyfin. --- .../python-modules/aiojellyfin/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/aiojellyfin/default.nix diff --git a/pkgs/development/python-modules/aiojellyfin/default.nix b/pkgs/development/python-modules/aiojellyfin/default.nix new file mode 100644 index 000000000000..886346f92bbe --- /dev/null +++ b/pkgs/development/python-modules/aiojellyfin/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + aiohttp, + mashumaro, + + # tests + pytestCheckHook, + pytest-aiohttp, + pytest-cov-stub, +}: + +buildPythonPackage rec { + pname = "aiojellyfin"; + version = "0.10.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Jc2k"; + repo = "aiojellyfin"; + rev = "v${version}"; + hash = "sha256-D4/DlhCeeI4CggW7KGauZ57fHY92JM/kZSUODyNVcNg="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + mashumaro + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-aiohttp + pytest-cov-stub + ]; + + pythonImportsCheck = [ "aiojellyfin" ]; + + meta = with lib; { + description = ""; + homepage = "https://github.com/Jc2k/aiojellyfin"; + changelog = "https://github.com/Jc2k/aiojellyfin/blob/${src.rev}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ hexa ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c6c3c64b0942..3be8333aabab 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -289,6 +289,8 @@ self: super: with self; { aioinflux = callPackage ../development/python-modules/aioinflux { }; + aiojellyfin = callPackage ../development/python-modules/aiojellyfin { }; + aiojobs = callPackage ../development/python-modules/aiojobs { }; aiokafka = callPackage ../development/python-modules/aiokafka { };