nixpkgs/pkgs/development/python-modules/pyfirefly/default.nix
2026-06-10 05:58:47 +00:00

53 lines
988 B
Nix

{
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
hatchling,
lib,
mashumaro,
orjson,
pytest-cov-stub,
pytestCheckHook,
syrupy,
yarl,
}:
buildPythonPackage rec {
pname = "pyfirefly";
version = "0.1.16";
pyproject = true;
src = fetchFromGitHub {
owner = "erwindouna";
repo = "pyfirefly";
tag = "v${version}";
hash = "sha256-RrVjXhV42DBvmTcZMowmHXN5K4nZfKPT/CDbvf1tOAQ=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
mashumaro
orjson
yarl
];
pythonImportsCheck = [ "pyfirefly" ];
nativeCheckInputs = [
aresponses
pytest-cov-stub
pytestCheckHook
syrupy
];
meta = {
changelog = "https://github.com/erwindouna/pyfirefly/releases/tag/${src.tag}";
description = "Asynchronous Python client for the Firefly III API";
homepage = "https://github.com/erwindouna/pyfirefly";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
}