1{
2 lib,
3 aiohttp,
4 aresponses,
5 arrow,
6 buildPythonPackage,
7 certifi,
8 fetchFromGitHub,
9 frozenlist,
10 poetry-core,
11 pytest-aiohttp,
12 pytestCheckHook,
13 pythonOlder,
14 yarl,
15}:
16
17buildPythonPackage rec {
18 pname = "aiopinboard";
19 version = "2024.01.0";
20 pyproject = true;
21
22 disabled = pythonOlder "3.10";
23
24 src = fetchFromGitHub {
25 owner = "bachya";
26 repo = "aiopinboard";
27 tag = version;
28 hash = "sha256-/N9r17e0ZvPmcqW/XtRyAENKCGRzWqeOSKPpWHHYomg=";
29 };
30
31 nativeBuildInputs = [ poetry-core ];
32
33 propagatedBuildInputs = [
34 aiohttp
35 arrow
36 certifi
37 frozenlist
38 yarl
39 ];
40
41 nativeCheckInputs = [
42 aresponses
43 pytest-aiohttp
44 pytestCheckHook
45 ];
46
47 pythonImportsCheck = [ "aiopinboard" ];
48
49 meta = with lib; {
50 description = "Library to interact with the Pinboard API";
51 homepage = "https://github.com/bachya/aiopinboard";
52 changelog = "https://github.com/bachya/aiopinboard/releases/tag/${version}";
53 license = licenses.mit;
54 maintainers = with maintainers; [ fab ];
55 };
56}