2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-04-12 18:23:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyemby";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.10";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mezz64";
|
2024-09-19 14:19:46 +00:00
|
|
|
repo = "pyemby";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-+A/SNMCUqo9TwWsQXwOKJCqmYhbilIdHYazLNQY+NkU=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-04-12 18:23:04 +00:00
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# Module has no tests
|
2021-04-12 18:23:04 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyemby" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to interface with the Emby API";
|
|
|
|
homepage = "https://github.com/mezz64/pyemby";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = licenses.mit;
|
2021-04-12 18:23:04 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|