2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, beautifulsoup4
|
|
|
|
, bottle
|
|
|
|
, chardet
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-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
|
2022-05-18 14:49:53 +00:00
|
|
|
, python-magic
|
2021-02-22 21:28:39 +00:00
|
|
|
, requests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "beancount";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-FONWJaLpy9Q8rmF42gjLPxIk9iYeVBymcm3zXZjpw2o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests require files not included in the PyPI archive.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
bottle
|
|
|
|
chardet
|
2021-07-04 02:40:35 +00:00
|
|
|
python-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
|
2022-05-18 14:49:53 +00:00
|
|
|
python-magic
|
2020-04-24 23:36:52 +00:00
|
|
|
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; {
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/beancount/beancount";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|