Skip to content

Commit

Permalink
ledger-autosync: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Aug 12, 2024
1 parent d11932a commit 9ec4473
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions pkgs/applications/office/ledger-autosync/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{ lib
, python3Packages
, fetchFromGitHub
, fetchpatch2
, ledger
, hledger
{
lib,
python3Packages,
fetchFromGitHub,
fetchpatch2,
ledger,
hledger,
}:

python3Packages.buildPythonApplication rec {
pname = "ledger-autosync";
version = "1.0.3";
format = "pyproject";
pyproject = true;

# no tests included in PyPI tarball
src = fetchFromGitHub {
owner = "egh";
repo = "ledger-autosync";
rev = "v${version}";
sha256 = "0n3y4qxsv1cyvyap95h3rj4bj1sinyfgsajygm7s8di3j5aabqr2";
hash = "sha256-IuOlVJEjNqRPfV4q/Zy3UQe5iMwDlnSV356FrTsmflg=";
};

patches = [
Expand All @@ -32,11 +33,9 @@ python3Packages.buildPythonApplication rec {
})
];

nativeBuildInputs = with python3Packages; [
poetry-core
];
build-system = with python3Packages; [ poetry-core ];

propagatedBuildInputs = with python3Packages; [
dependencies = with python3Packages; [
ofxclient
ofxparse
];
Expand All @@ -57,8 +56,9 @@ python3Packages.buildPythonApplication rec {

meta = with lib; {
homepage = "https://github.com/egh/ledger-autosync";
changelog = "https://github.com/egh/ledger-autosync/releases/tag/v${version}";
description = "OFX/CSV autosync for ledger and hledger";
license = licenses.gpl3;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ eamsden ];
};
}

0 comments on commit 9ec4473

Please sign in to comment.