1{ lib
2, aiohttp
3, buildPythonPackage
4, click
5, fetchFromGitHub
6, poetry-core
7, pytestCheckHook
8, pythonOlder
9, yarl
10}:
11
12buildPythonPackage rec {
13 pname = "aiortm";
14 version = "0.3.1";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "MartinHjelmare";
21 repo = pname;
22 rev = "v${version}";
23 hash = "sha256-DTFynPFf0NUBieXDiMKhCNwBqx3s/xzggNmnz/IKjbU=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 propagatedBuildInputs = [
31 aiohttp
32 click
33 yarl
34 ];
35
36 checkInputs = [
37 pytestCheckHook
38 ];
39
40 postPatch = ''
41 substituteInPlace pyproject.toml \
42 --replace " --cov=aiortm --cov-report=term-missing:skip-covered" ""
43 '';
44
45 pythonImportsCheck = [
46 "aiortm"
47 ];
48
49 meta = with lib; {
50 description = "Library for the Remember the Milk API";
51 homepage = "https://github.com/MartinHjelmare/aiortm";
52 license = with licenses; [ asl20 ];
53 maintainers = with maintainers; [ fab ];
54 };
55}