Unverified Commit ca3f1203 authored by Arnout Engelen's avatar Arnout Engelen Committed by GitHub
Browse files

python3Packages.beancount-periodic: init at 0.2.1 (#435313)

parents d955afd4 3ff3aaa4
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1830,6 +1830,8 @@ self: super: with self; {
  beancount-parser = callPackage ../development/python-modules/beancount-parser { };
  beancount-periodic = callPackage ../development/python-modules/beancount-periodic { };
  beancount-plugin-utils = callPackage ../development/python-modules/beancount-plugin-utils { };
  beancount_2 = callPackage ../development/python-modules/beancount/2.nix { };