2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
isPy3k,
|
|
|
|
beautifulsoup4,
|
|
|
|
bottle,
|
|
|
|
chardet,
|
|
|
|
python-dateutil,
|
|
|
|
google-api-python-client,
|
|
|
|
google-auth-oauthlib,
|
|
|
|
lxml,
|
|
|
|
oauth2client,
|
|
|
|
ply,
|
|
|
|
pytest,
|
|
|
|
python-magic,
|
|
|
|
requests,
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2.3.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "beancount";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-gB+Tvta1fS4iQ2aIxInVob8fduIQ887RhoB1fmDTR1o=";
|
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 = ''
|
2024-06-05 15:53:02 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2021-02-22 21:28:39 +00:00
|
|
|
license = licenses.gpl2Only;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ sharzy polarmutex ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|