push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
{
lib,
buildPythonPackage,
fetchPypi,
isPy3k,
beautifulsoup4,
bottle,
chardet,
python-dateutil,
google-api-python-client,
google-auth-oauthlib,
lxml,
oauth2client,
ply,
pytest,
python-magic,
requests,
}:
buildPythonPackage rec {
version = "2.3.6";
format = "setuptools";
pname = "beancount";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
hash = "sha256-gB+Tvta1fS4iQ2aIxInVob8fduIQ887RhoB1fmDTR1o=";
};
# Tests require files not included in the PyPI archive.
doCheck = false;
propagatedBuildInputs = [
beautifulsoup4
bottle
chardet
python-dateutil
google-api-python-client
google-auth-oauthlib
lxml
oauth2client
ply
python-magic
requests
# pytest really is a runtime dependency
# https://github.com/beancount/beancount/blob/v2/setup.py#L81-L82
pytest
];
# beancount cannot be directly bumped to 3.x
# e.g. https://github.com/NixOS/nixpkgs/issues/380197
passthru.skipBulkUpdate = true;
meta = with lib; {
homepage = "https://github.com/beancount/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.
'';
license = licenses.gpl2Only;
maintainers = with maintainers; [
sharzy
polarmutex
];
};
}

View File

@@ -0,0 +1,68 @@
{
lib,
bison,
buildPythonPackage,
click,
fetchFromGitHub,
flex,
gnupg,
meson,
meson-python,
pytestCheckHook,
python-dateutil,
regex,
}:
buildPythonPackage rec {
version = "3.2.0";
pname = "beancount";
pyproject = true;
src = fetchFromGitHub {
owner = "beancount";
repo = "beancount";
tag = version;
hash = "sha256-XWTgaBvB4/SONL44afvprZwJUVrkoda5XLGNxad0kec=";
};
build-system = [
meson
meson-python
];
dependencies = [
click
python-dateutil
regex
];
nativeBuildInputs = [
bison
flex
];
nativeCheckInputs = [
gnupg
pytestCheckHook
];
preCheck = ''
# avoid local paths, relative imports wont resolve correctly
mv beancount tests
'';
pythonImportsCheck = [ "beancount" ];
meta = {
homepage = "https://github.com/beancount/beancount";
changelog = "https://github.com/beancount/beancount/releases/tag/${src.tag}";
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.
'';
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ alapshin ];
};
}