git.iko.soy/typeable/nixpkgs
on master help sign in
ledger-autosync: init at 1.0.0
commit42bdc36a84c6a6cadd70c963d172d322e48c1db0 authorEdward Amsden <edward@blackriversoft.com> dateWed 2 Jan 2019, 21:45 (8 years ago) parenta33b64c
2 files changed+54
pkgs/applications/office/ledger-autosync/default.nix+51 pkgs/top-level/all-packages.nix+3
pkgs/applications/office/ledger-autosync/default.nixnew file+51
@@ -0,0 +1,51 @@
1+{ stdenv, python3Packages, fetchFromGitHub, ledger, hledger, useLedger ? true, useHledger ? true }:
2+
3+python3Packages.buildPythonApplication rec {
4+ pname = "ledger-autosync";
5+ version = "1.0.0";
6+
7+# no tests included in PyPI tarball
8+ src = fetchFromGitHub {
9+ owner = "egh";
10+ repo = "ledger-autosync";
11+ rev = "v${version}";
12+ sha256 = "1fn32c02idccdmf9906pxn248qc9basjy2kr2g600806k3qvw84a";
13+ };
14+
15+ propagatedBuildInputs = with python3Packages; [
16+ asn1crypto
17+ beautifulsoup4
18+ cffi
19+ cryptography
20+ entrypoints
21+ fuzzywuzzy
22+ idna
23+ jeepney
24+ keyring
25+ lxml
26+ mock
27+ nose
28+ ofxclient
29+ ofxhome
30+ ofxparse
31+ pbr
32+ pycparser
33+ secretstorage
34+ six
35+ ] ++ stdenv.lib.optional useLedger ledger
36+ ++ stdenv.lib.optional useHledger hledger;
37+
38+ # Checks require ledger as a python package,
39+ # ledger does not support python3 while ledger-autosync requires it.
40+ checkInputs = with python3Packages; [ ledger hledger nose mock ];
41+ checkPhase = ''
42+ nosetests -a generic -a ledger -a hledger
43+ '';
44+
45+ meta = with stdenv.lib; {
46+ homepage = https://github.com/egh/ledger-autosync;
47+ description = "OFX/CSV autosync for ledger and hledger";
48+ license = licenses.gpl3;
49+ maintainers = with maintainers; [ eamsden ];
50+ };
51+}
pkgs/top-level/all-packages.nix+3
@@ -18044,6 +18044,9 @@ in
1804418044 boost = boost15x;
1804518045 };
1804618046 ledger = ledger3;
18047+
18048+ ledger-autosync = callPackage ../applications/office/ledger-autosync { };
18049+
1804718050 ledger-web = callPackage ../applications/office/ledger-web { };
1804818051
1804918052 lighthouse = callPackage ../applications/misc/lighthouse { };