summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/beancount-periodic/default.nix
blob: bf64a24996f3c89a00572f046ecd2607f50bc646 (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
44
45
46
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  unittestCheckHook,
  setuptools,
  beancount,
  beangulp,
  python-dateutil,
}:

buildPythonPackage rec {
  pname = "beancount-periodic";
  version = "0.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dallaslu";
    repo = "beancount-periodic";
    tag = "v${version}";
    hash = "sha256-XuBDKG/iOS0gyfiwEEPjIckAbnfOKHjYwXW4CmUy8eA=";
  };

  build-system = [ setuptools ];

  dependencies = [
    beancount
    beangulp
    python-dateutil
  ];

  nativeCheckInputs = [ unittestCheckHook ];
  unittestFlags = [
    "-v"
    "tests"
  ];

  pythonImportsCheck = [ "beancount_periodic" ];

  meta = {
    description = "Beancount plugin to generate periodic transactions";
    homepage = "https://github.com/dallaslu/beancount-periodic";
    license = with lib.licenses; [ unlicense ];
    maintainers = with lib.maintainers; [ polyfloyd ];
  };
}