Files
2026-07-16 06:50:07 +00:00

65 lines
1.1 KiB
Nix

{
aiofiles,
aiohttp,
aiointercept,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
freezegun,
lib,
orjson,
pyprojectVersionPatchHook,
pytest-asyncio,
pytestCheckHook,
setuptools,
syrupy,
}:
buildPythonPackage (finalAttrs: {
pname = "imgw-pib";
version = "2.4.3";
pyproject = true;
src = fetchFromGitHub {
owner = "bieniu";
repo = "imgw-pib";
tag = finalAttrs.version;
hash = "sha256-aGsvgAdj5PlVvLgE+PsgDUzmgDeXhsBJBNnxLn/K8XU=";
};
build-system = [ setuptools ];
nativeBuildInputs = [
pyprojectVersionPatchHook
];
pythonRelaxDeps = [
"aiohttp"
];
dependencies = [
aiofiles
aiohttp
orjson
];
pythonImportsCheck = [ "imgw_pib" ];
nativeCheckInputs = [
aiointercept
aioresponses
freezegun
pytest-asyncio
pytestCheckHook
syrupy
];
meta = {
changelog = "https://github.com/bieniu/imgw-pib/releases/tag/${finalAttrs.src.tag}";
description = "Python async wrapper for IMGW-PIB API";
homepage = "https://github.com/bieniu/imgw-pib";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
})