Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiortm / default.nix
blobcbd44aa17016bd966b8e49cea3b763d0a7d49792
2   lib,
3   aiohttp,
4   aioresponses,
5   buildPythonPackage,
6   ciso8601,
7   click,
8   fetchFromGitHub,
9   mashumaro,
10   poetry-core,
11   pytest-asyncio,
12   pytestCheckHook,
13   pythonOlder,
14   yarl,
17 buildPythonPackage rec {
18   pname = "aiortm";
19   version = "0.8.12";
20   pyproject = true;
22   disabled = pythonOlder "3.9";
24   src = fetchFromGitHub {
25     owner = "MartinHjelmare";
26     repo = "aiortm";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-X7MqBDmVfLy5ajqhFcvA8oCaoxy3zLusXkB659qWR5E=";
29   };
31   postPatch = ''
32     substituteInPlace pyproject.toml \
33       --replace-fail " --cov=aiortm --cov-report=term-missing:skip-covered" ""
34   '';
36   build-system = [ poetry-core ];
38   dependencies = [
39     aiohttp
40     ciso8601
41     click
42     mashumaro
43     yarl
44   ];
46   nativeCheckInputs = [
47     aioresponses
48     pytest-asyncio
49     pytestCheckHook
50   ];
52   pythonImportsCheck = [ "aiortm" ];
54   meta = with lib; {
55     description = "Library for the Remember the Milk API";
56     homepage = "https://github.com/MartinHjelmare/aiortm";
57     changelog = "https://github.com/MartinHjelmare/aiortm/blob/v${version}/CHANGELOG.md";
58     license = with licenses; [ asl20 ];
59     maintainers = with maintainers; [ fab ];
60     mainProgram = "aiortm";
61   };