2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, beautifulsoup4
|
|
|
|
, bottle
|
|
|
|
, chardet
|
|
|
|
, dateutil
|
2021-03-09 03:18:52 +00:00
|
|
|
, google-api-python-client
|
2021-05-28 09:39:13 +00:00
|
|
|
, google-auth-oauthlib
|
2021-02-22 21:28:39 +00:00
|
|
|
, lxml
|
|
|
|
, oauth2client
|
|
|
|
, ply
|
|
|
|
, pytest
|
|
|
|
, python_magic
|
|
|
|
, requests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "2.3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "beancount";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "sha256-K/CM5qldmAAPTXM5WYXNHeuBwNUu1aduYQusd9gvhsA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests require files not included in the PyPI archive.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
bottle
|
|
|
|
chardet
|
|
|
|
dateutil
|
2021-03-09 03:18:52 +00:00
|
|
|
google-api-python-client
|
2021-05-28 09:39:13 +00:00
|
|
|
google-auth-oauthlib
|
2020-04-24 23:36:52 +00:00
|
|
|
lxml
|
|
|
|
oauth2client
|
|
|
|
ply
|
|
|
|
python_magic
|
|
|
|
requests
|
|
|
|
# pytest really is a runtime dependency
|
2021-02-22 21:28:39 +00:00
|
|
|
# https://github.com/beancount/beancount/blob/v2/setup.py#L81-L82
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://furius.ca/beancount/";
|
|
|
|
description = "Double-entry bookkeeping computer language";
|
|
|
|
longDescription = ''
|
|
|
|
A double-entry bookkeeping computer language that lets you define
|
|
|
|
financial transaction records in a text file, read them in memory,
|
|
|
|
generate a variety of reports from them, and provides a web interface.
|
|
|
|
'';
|
2021-02-22 21:28:39 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|