Skip to content

Commit cc354c4

Browse files
committed
python3Packages.beancount: 2.3.6 -> 3.1.0
1 parent 5eab8f3 commit cc354c4

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@
175175

176176
- `ast-grep` remove `sg` command to prevent conflict with `sg` command from shadow-utils. If you need legacy sg command compatibility with old code, you can use `ast-grep.override { enableLegacySg = true; }`
177177

178+
- `python3Packages.beancount` was updated to 3.1.0. Previous major version remains available as `python3Packages.beancount_2`.
179+
178180
- `binwalk` was updated to 3.1.0, which has been rewritten in rust. The python module is no longer available.
179181
See the release notes of [3.1.0](https://github.com/ReFirmLabs/binwalk/releases/tag/v3.1.0) for more information.
180182

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
lib,
3+
bison,
4+
buildPythonPackage,
5+
click,
6+
fetchFromGitHub,
7+
flex,
8+
gnupg,
9+
meson,
10+
meson-python,
11+
pytestCheckHook,
12+
python-dateutil,
13+
regex,
14+
}:
15+
16+
buildPythonPackage rec {
17+
version = "3.1.0";
18+
pname = "beancount";
19+
pyproject = true;
20+
21+
src = fetchFromGitHub {
22+
owner = "beancount";
23+
repo = "beancount";
24+
tag = version;
25+
hash = "sha256-ogjBW/NGlMmhYlzcx3EWWoVi+OOEv2Wm49tzwMiNb8A=";
26+
};
27+
28+
build-system = [
29+
meson
30+
meson-python
31+
];
32+
33+
dependencies = [
34+
click
35+
python-dateutil
36+
regex
37+
];
38+
39+
nativeBuildInputs = [
40+
bison
41+
flex
42+
];
43+
44+
nativeCheckInputs = [
45+
gnupg
46+
pytestCheckHook
47+
];
48+
49+
preCheck = ''
50+
# avoid local paths, relative imports wont resolve correctly
51+
mv beancount tests
52+
'';
53+
54+
pythonImportsCheck = [ "beancount" ];
55+
56+
meta = {
57+
homepage = "https://github.com/beancount/beancount";
58+
changelog = "https://github.com/beancount/beancount/releases/tag/${src.tag}";
59+
description = "Double-entry bookkeeping computer language";
60+
longDescription = ''
61+
A double-entry bookkeeping computer language that lets you define
62+
financial transaction records in a text file, read them in memory,
63+
generate a variety of reports from them, and provides a web interface.
64+
'';
65+
license = lib.licenses.gpl2Only;
66+
maintainers = with lib.maintainers; [ alapshin ];
67+
};
68+
}

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15944,6 +15944,8 @@ with pkgs;
1594415944

1594515945
samplv1 = libsForQt5.callPackage ../applications/audio/samplv1 { };
1594615946

15947+
beancount = with python3.pkgs; toPythonApplication beancount;
15948+
1594715949
beancount_2 = with python3.pkgs; toPythonApplication beancount_2;
1594815950

1594915951
beancount-black = with python3.pkgs; toPythonApplication beancount-black;

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,8 @@ self: super: with self; {
15871587

15881588
before-after = callPackage ../development/python-modules/before-after { };
15891589

1590+
beancount = callPackage ../development/python-modules/beancount { };
1591+
15901592
beancount_2 = callPackage ../development/python-modules/beancount/2.nix { };
15911593

15921594
beancount-black = callPackage ../development/python-modules/beancount-black { };

0 commit comments

Comments
 (0)