summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/monarchmoney/default.nix
blob: aa59035ecda6fe5bd45de476cf5f2af78d8c034e (about) (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
42
43
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  aiohttp,
  gql,
  oathtool,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "monarchmoney";
  version = "0.1.15";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "hammem";
    repo = "monarchmoney";
    tag = "v${version}";
    hash = "sha256-I5YCINwJqzdntVGn8T8Yx/cfWOtwgwvyt30swBLQHDo=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    gql
    oathtool
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "monarchmoney" ];

  meta = {
    description = "Python API for Monarch Money";
    homepage = "https://github.com/hammem/monarchmoney";
    changelog = "https://github.com/hammem/monarchmoney/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}