Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.beancount3: init at 3.0.0 #371541

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
python312Packages.beancount3: init at 3.0.0
  • Loading branch information
alapshin committed Jan 7, 2025
commit 523d91d0cec26ad7dac5876902f343f6e67daa40
66 changes: 66 additions & 0 deletions pkgs/development/python-modules/beancount/3.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
lib,
beautifulsoup4,
buildPythonPackage,
click,
fetchPypi,
isPy3k,
meson,
meson-python,
pytestCheckHook,
python-dateutil,
regex,
}:

buildPythonPackage rec {
version = "3.0.0";
pname = "beancount";
pyproject = true;

disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
hash = "sha256-z2aGhpx+o+78CU7hPthmv196K7DGHk1PXfPjX4Rs/98=";
};

# Tests require files not included in the PyPI archive.
# Also there is an import error after migration to meson build.
doCheck = false;

build-system = [
meson
meson-python
];

depedencies = [
click
python-dateutil
regex
];

nativeCheckInputs = [
pytestCheckHook
];

propagatedBuildInputs = [
beautifulsoup4
click
python-dateutil
regex
];

pythonImportsCheck = [ "beancount" ];

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; [ bhipple ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16148,6 +16148,7 @@ with pkgs;
samplv1 = libsForQt5.callPackage ../applications/audio/samplv1 { };

beancount = with python3.pkgs; toPythonApplication beancount;
beancount3 = with python3.pkgs; toPythonApplication beancount3;

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

Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,8 @@ self: super: with self; {

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

beancount3 = callPackage ../development/python-modules/beancount/3.nix { };

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

beancount-parser = callPackage ../development/python-modules/beancount-parser { };
Expand Down