2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2023-01-11 07:51:40 +00:00
|
|
|
, aioresponses
|
2022-08-12 12:06:08 +00:00
|
|
|
, buildPythonPackage
|
2024-01-02 11:29:13 +00:00
|
|
|
, ciso8601
|
2022-08-12 12:06:08 +00:00
|
|
|
, click
|
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, mashumaro
|
2022-08-12 12:06:08 +00:00
|
|
|
, poetry-core
|
2024-01-02 11:29:13 +00:00
|
|
|
, pytest-asyncio
|
2022-08-12 12:06:08 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, yarl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiortm";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.8.10";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MartinHjelmare";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "aiortm";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-WkVuuvWWdj2McdXl+XwYukUcloehelFIi6QL5LSkfLk=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2024-02-07 01:22:34 +00:00
|
|
|
--replace-warn " --cov=aiortm --cov-report=term-missing:skip-covered" ""
|
2024-01-02 11:29:13 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2024-01-02 11:29:13 +00:00
|
|
|
ciso8601
|
2022-08-12 12:06:08 +00:00
|
|
|
click
|
2024-01-02 11:29:13 +00:00
|
|
|
mashumaro
|
2022-08-12 12:06:08 +00:00
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
aioresponses
|
2024-01-02 11:29:13 +00:00
|
|
|
pytest-asyncio
|
2022-08-12 12:06:08 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiortm"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for the Remember the Milk API";
|
|
|
|
homepage = "https://github.com/MartinHjelmare/aiortm";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/MartinHjelmare/aiortm/blob/v${version}/CHANGELOG.md";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|