python3Packages.beancount: 2.3.6 -> 3.1.0

This commit is contained in:
Andrei Lapshin 2025-02-21 17:52:30 +01:00
parent 5eab8f3dec
commit cc354c451c
No known key found for this signature in database
GPG key ID: CB56A1B5A8CA7E52
4 changed files with 74 additions and 0 deletions

View file

@ -175,6 +175,8 @@
- `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; }`
- `python3Packages.beancount` was updated to 3.1.0. Previous major version remains available as `python3Packages.beancount_2`.
- `binwalk` was updated to 3.1.0, which has been rewritten in rust. The python module is no longer available.
See the release notes of [3.1.0](https://github.com/ReFirmLabs/binwalk/releases/tag/v3.1.0) for more information.

View file

@ -0,0 +1,68 @@
{
lib,
bison,
buildPythonPackage,
click,
fetchFromGitHub,
flex,
gnupg,
meson,
meson-python,
pytestCheckHook,
python-dateutil,
regex,
}:
buildPythonPackage rec {
version = "3.1.0";
pname = "beancount";
pyproject = true;
src = fetchFromGitHub {
owner = "beancount";
repo = "beancount";
tag = version;
hash = "sha256-ogjBW/NGlMmhYlzcx3EWWoVi+OOEv2Wm49tzwMiNb8A=";
};
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 ];
};
}

View file

@ -15944,6 +15944,8 @@ with pkgs;
samplv1 = libsForQt5.callPackage ../applications/audio/samplv1 { };
beancount = with python3.pkgs; toPythonApplication beancount;
beancount_2 = with python3.pkgs; toPythonApplication beancount_2;
beancount-black = with python3.pkgs; toPythonApplication beancount-black;

View file

@ -1587,6 +1587,8 @@ self: super: with self; {
before-after = callPackage ../development/python-modules/before-after { };
beancount = callPackage ../development/python-modules/beancount { };
beancount_2 = callPackage ../development/python-modules/beancount/2.nix { };
beancount-black = callPackage ../development/python-modules/beancount-black { };