Unverified Commit adaab8b6 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python312Packages.aiojellyfin: init at 0.10.0

Simple asyncio library for accessing Jellyfin.
parent a3f37125
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };