depot/third_party/nixpkgs/pkgs/development/python-modules/aiojellyfin/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

53 lines
938 B
Nix

{
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 ];
};
}