summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aiokarakeep/default.nix
blob: cfa6d15449254f658e8203aa91abf1f07f3b220c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  pytest-asyncio,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "aiokarakeep";
  version = "0.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sli-cka";
    repo = "aiokarakeep";
    tag = "v${finalAttrs.version}";
    hash = "sha256-FAFJfVnP1SEgt8jCET6oqS6DT/VtdFUTJ8l+HtWq5es=";
  };

  build-system = [ hatchling ];

  dependencies = [ aiohttp ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [ "aiokarakeep" ];

  meta = {
    description = "Async Python client for the Karakeep API";
    homepage = "https://github.com/sli-cka/aiokarakeep";
    changelog = "https://github.com/sli-cka/aiokarakeep/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
})