depot/third_party/nixpkgs/pkgs/development/python-modules/aiortm/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

62 lines
1.2 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
ciso8601,
click,
fetchFromGitHub,
mashumaro,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
yarl,
}:
buildPythonPackage rec {
pname = "aiortm";
version = "0.8.14";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = "aiortm";
rev = "refs/tags/v${version}";
hash = "sha256-x/QTmFNPnazyAmJQ9zLzAFB9V3NUwDeTJdrJqQ54jGE=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=aiortm --cov-report=term-missing:skip-covered" ""
'';
build-system = [ poetry-core ];
dependencies = [
aiohttp
ciso8601
click
mashumaro
yarl
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aiortm" ];
meta = with lib; {
description = "Library for the Remember the Milk API";
homepage = "https://github.com/MartinHjelmare/aiortm";
changelog = "https://github.com/MartinHjelmare/aiortm/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
mainProgram = "aiortm";
};
}