Files
nixpkgs/pkgs/development/python-modules/aiortm/default.nix
T
2026-03-08 12:51:30 +00:00

66 lines
1.2 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
ciso8601,
fetchFromGitHub,
mashumaro,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
typer,
yarl,
}:
buildPythonPackage rec {
pname = "aiortm";
version = "0.12.0";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = "aiortm";
tag = "v${version}";
hash = "sha256-6idPxFW1h9kyeivBdZ8tEznPCmZLK7Uno+ZKP21WoeA=";
};
pythonRelaxDeps = [ "typer" ];
build-system = [ setuptools ];
dependencies = [
aiohttp
ciso8601
mashumaro
yarl
];
optional-dependencies = {
cli = [ typer ];
};
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "aiortm" ];
meta = {
description = "Library for the Remember the Milk API";
homepage = "https://github.com/MartinHjelmare/aiortm";
changelog = "https://github.com/MartinHjelmare/aiortm/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "aiortm";
};
}