Files
nixpkgs/pkgs/development/python-modules/aiortm/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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.11.0";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = "aiortm";
tag = "v${version}";
hash = "sha256-KghKxaa1MhNH13NdUpDiT5h8ZEj5aWLUVhvQKvLC+oM=";
};
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";
};
}