forked from mirrors/nixpkgs
ledger-autosync: init at 1.0.0
This commit is contained in:
parent
a33b64c835
commit
42bdc36a84
51
pkgs/applications/office/ledger-autosync/default.nix
Normal file
51
pkgs/applications/office/ledger-autosync/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ stdenv, python3Packages, fetchFromGitHub, ledger, hledger, useLedger ? true, useHledger ? true }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "ledger-autosync";
|
||||
version = "1.0.0";
|
||||
|
||||
# no tests included in PyPI tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "egh";
|
||||
repo = "ledger-autosync";
|
||||
rev = "v${version}";
|
||||
sha256 = "1fn32c02idccdmf9906pxn248qc9basjy2kr2g600806k3qvw84a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
asn1crypto
|
||||
beautifulsoup4
|
||||
cffi
|
||||
cryptography
|
||||
entrypoints
|
||||
fuzzywuzzy
|
||||
idna
|
||||
jeepney
|
||||
keyring
|
||||
lxml
|
||||
mock
|
||||
nose
|
||||
ofxclient
|
||||
ofxhome
|
||||
ofxparse
|
||||
pbr
|
||||
pycparser
|
||||
secretstorage
|
||||
six
|
||||
] ++ stdenv.lib.optional useLedger ledger
|
||||
++ stdenv.lib.optional useHledger hledger;
|
||||
|
||||
# Checks require ledger as a python package,
|
||||
# ledger does not support python3 while ledger-autosync requires it.
|
||||
checkInputs = with python3Packages; [ ledger hledger nose mock ];
|
||||
checkPhase = ''
|
||||
nosetests -a generic -a ledger -a hledger
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/egh/ledger-autosync;
|
||||
description = "OFX/CSV autosync for ledger and hledger";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ eamsden ];
|
||||
};
|
||||
}
|
|
@ -18044,6 +18044,9 @@ in
|
|||
boost = boost15x;
|
||||
};
|
||||
ledger = ledger3;
|
||||
|
||||
ledger-autosync = callPackage ../applications/office/ledger-autosync { };
|
||||
|
||||
ledger-web = callPackage ../applications/office/ledger-web { };
|
||||
|
||||
lighthouse = callPackage ../applications/misc/lighthouse { };
|
||||
|
|
Loading…
Reference in a new issue