1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, beautifulsoup4
6, bottle
7, chardet
8, python-dateutil
9, google-api-python-client
10, google-auth-oauthlib
11, lxml
12, oauth2client
13, ply
14, pytest
15, python-magic
16, requests
17}:
18
19buildPythonPackage rec {
20 version = "2.3.5";
21 pname = "beancount";
22
23 disabled = !isPy3k;
24
25 src = fetchPypi {
26 inherit pname version;
27 sha256 = "sha256-FONWJaLpy9Q8rmF42gjLPxIk9iYeVBymcm3zXZjpw2o=";
28 };
29
30 # Tests require files not included in the PyPI archive.
31 doCheck = false;
32
33 propagatedBuildInputs = [
34 beautifulsoup4
35 bottle
36 chardet
37 python-dateutil
38 google-api-python-client
39 google-auth-oauthlib
40 lxml
41 oauth2client
42 ply
43 python-magic
44 requests
45 # pytest really is a runtime dependency
46 # https://github.com/beancount/beancount/blob/v2/setup.py#L81-L82
47 pytest
48 ];
49
50 meta = with lib; {
51 homepage = "https://github.com/beancount/beancount";
52 description = "Double-entry bookkeeping computer language";
53 longDescription = ''
54 A double-entry bookkeeping computer language that lets you define
55 financial transaction records in a text file, read them in memory,
56 generate a variety of reports from them, and provides a web interface.
57 '';
58 license = licenses.gpl2Only;
59 maintainers = with maintainers; [ bhipple ];
60 };
61}