python3Packages.beancount: 2.3.6 -> 3.1.0 (#371541)

authored by Robert Schütz and committed by GitHub 7dd54f63 b3c931b9

+299 -64
+2
nixos/doc/manual/release-notes/rl-2505.section.md
··· 179 180 - `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; }` 181 182 - `binwalk` was updated to 3.1.0, which has been rewritten in rust. The python module is no longer available. 183 See the release notes of [3.1.0](https://github.com/ReFirmLabs/binwalk/releases/tag/v3.1.0) for more information. 184
··· 179 180 - `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; }` 181 182 + - `python3Packages.beancount` was updated to 3.1.0. Previous major version remains available as `python3Packages.beancount_2`. 183 + 184 - `binwalk` was updated to 3.1.0, which has been rewritten in rust. The python module is no longer available. 185 See the release notes of [3.1.0](https://github.com/ReFirmLabs/binwalk/releases/tag/v3.1.0) for more information. 186
+5 -4
pkgs/by-name/be/beanprice/package.nix
··· 6 7 python3Packages.buildPythonApplication rec { 8 pname = "beanprice"; 9 - version = "1.2.1-unstable-2024-06-19"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "beancount"; 14 repo = "beanprice"; 15 - rev = "e894c9182f4d16f9a46ccb87bdaeca1a7dede040"; 16 - hash = "sha256-l96W77gldE06Za8fj84LADGCqlYeWlHKvWQO+oLy1gI="; 17 }; 18 19 build-system = with python3Packages; [ setuptools ]; ··· 31 regex 32 ]; 33 34 - pythonImportsCheck = [ "beancount" ]; 35 36 meta = { 37 homepage = "https://github.com/beancount/beanprice"; 38 description = "Price quotes fetcher for Beancount"; 39 longDescription = ''
··· 6 7 python3Packages.buildPythonApplication rec { 8 pname = "beanprice"; 9 + version = "2.0.0"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "beancount"; 14 repo = "beanprice"; 15 + tag = "v${version}"; 16 + hash = "sha256-+bqYnTzZByJlCPUhThM2B9UjgdWzjF21Yiw3fQAZ6k4="; 17 }; 18 19 build-system = with python3Packages; [ setuptools ]; ··· 31 regex 32 ]; 33 34 + pythonImportsCheck = [ "beanprice" ]; 35 36 meta = { 37 + broken = lib.versionOlder python3Packages.beancount.version "3"; 38 homepage = "https://github.com/beancount/beanprice"; 39 description = "Price quotes fetcher for Beancount"; 40 longDescription = ''
+12 -6
pkgs/by-name/fa/fava/package.nix
··· 6 7 python3Packages.buildPythonApplication rec { 8 pname = "fava"; 9 - version = "1.29"; 10 pyproject = true; 11 12 src = fetchPypi { 13 inherit pname version; 14 - hash = "sha256-UZZ142FchYXqPtHb6EWnKjV+xtJ0Gvu+SovTH6+kVn8="; 15 }; 16 17 postPatch = '' ··· 24 dependencies = with python3Packages; [ 25 babel 26 beancount 27 cheroot 28 click 29 flask 30 flask-babel 31 - jaraco-functools 32 jinja2 33 markdown2 34 ply ··· 39 40 nativeCheckInputs = [ python3Packages.pytestCheckHook ]; 41 42 preCheck = '' 43 export HOME=$TEMPDIR 44 ''; 45 46 - meta = with lib; { 47 description = "Web interface for beancount"; 48 mainProgram = "fava"; 49 homepage = "https://beancount.github.io/fava"; 50 changelog = "https://beancount.github.io/fava/changelog.html"; 51 - license = licenses.mit; 52 - maintainers = with maintainers; [ 53 bhipple 54 sigmanificient 55 ];
··· 6 7 python3Packages.buildPythonApplication rec { 8 pname = "fava"; 9 + version = "1.30.1"; 10 pyproject = true; 11 12 src = fetchPypi { 13 inherit pname version; 14 + hash = "sha256-69Wx9/H7nLDPZP9LOUnDJngY9YTCcr+oQ0E6+xeIWPE="; 15 }; 16 17 postPatch = '' ··· 24 dependencies = with python3Packages; [ 25 babel 26 beancount 27 + beangulp 28 + beanquery 29 cheroot 30 click 31 flask 32 flask-babel 33 jinja2 34 markdown2 35 ply ··· 40 41 nativeCheckInputs = [ python3Packages.pytestCheckHook ]; 42 43 + env = { 44 + # Disable some tests when building with beancount2 45 + SNAPSHOT_IGNORE = lib.versions.major python3Packages.beancount.version == "2"; 46 + }; 47 + 48 preCheck = '' 49 export HOME=$TEMPDIR 50 ''; 51 52 + meta = { 53 description = "Web interface for beancount"; 54 mainProgram = "fava"; 55 homepage = "https://beancount.github.io/fava"; 56 changelog = "https://beancount.github.io/fava/changelog.html"; 57 + license = lib.licenses.mit; 58 + maintainers = with lib.maintainers; [ 59 bhipple 60 sigmanificient 61 ];
+70
pkgs/development/python-modules/beancount/2.nix
···
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchPypi, 5 + isPy3k, 6 + beautifulsoup4, 7 + bottle, 8 + chardet, 9 + python-dateutil, 10 + google-api-python-client, 11 + google-auth-oauthlib, 12 + lxml, 13 + oauth2client, 14 + ply, 15 + pytest, 16 + python-magic, 17 + requests, 18 + }: 19 + 20 + buildPythonPackage rec { 21 + version = "2.3.6"; 22 + format = "setuptools"; 23 + pname = "beancount"; 24 + 25 + disabled = !isPy3k; 26 + 27 + src = fetchPypi { 28 + inherit pname version; 29 + hash = "sha256-gB+Tvta1fS4iQ2aIxInVob8fduIQ887RhoB1fmDTR1o="; 30 + }; 31 + 32 + # Tests require files not included in the PyPI archive. 33 + doCheck = false; 34 + 35 + propagatedBuildInputs = [ 36 + beautifulsoup4 37 + bottle 38 + chardet 39 + python-dateutil 40 + google-api-python-client 41 + google-auth-oauthlib 42 + lxml 43 + oauth2client 44 + ply 45 + python-magic 46 + requests 47 + # pytest really is a runtime dependency 48 + # https://github.com/beancount/beancount/blob/v2/setup.py#L81-L82 49 + pytest 50 + ]; 51 + 52 + # beancount cannot be directly bumped to 3.x 53 + # e.g. https://github.com/NixOS/nixpkgs/issues/380197 54 + passthru.skipBulkUpdate = true; 55 + 56 + meta = with lib; { 57 + homepage = "https://github.com/beancount/beancount"; 58 + description = "Double-entry bookkeeping computer language"; 59 + longDescription = '' 60 + A double-entry bookkeeping computer language that lets you define 61 + financial transaction records in a text file, read them in memory, 62 + generate a variety of reports from them, and provides a web interface. 63 + ''; 64 + license = licenses.gpl2Only; 65 + maintainers = with maintainers; [ 66 + sharzy 67 + polarmutex 68 + ]; 69 + }; 70 + }
+43 -45
pkgs/development/python-modules/beancount/default.nix
··· 1 { 2 lib, 3 buildPythonPackage, 4 - fetchPypi, 5 - isPy3k, 6 - beautifulsoup4, 7 - bottle, 8 - chardet, 9 python-dateutil, 10 - google-api-python-client, 11 - google-auth-oauthlib, 12 - lxml, 13 - oauth2client, 14 - ply, 15 - pytest, 16 - python-magic, 17 - requests, 18 }: 19 20 buildPythonPackage rec { 21 - version = "2.3.6"; 22 - format = "setuptools"; 23 pname = "beancount"; 24 25 - disabled = !isPy3k; 26 - 27 - src = fetchPypi { 28 - inherit pname version; 29 - hash = "sha256-gB+Tvta1fS4iQ2aIxInVob8fduIQ887RhoB1fmDTR1o="; 30 }; 31 32 - # Tests require files not included in the PyPI archive. 33 - doCheck = false; 34 35 - propagatedBuildInputs = [ 36 - beautifulsoup4 37 - bottle 38 - chardet 39 python-dateutil 40 - google-api-python-client 41 - google-auth-oauthlib 42 - lxml 43 - oauth2client 44 - ply 45 - python-magic 46 - requests 47 - # pytest really is a runtime dependency 48 - # https://github.com/beancount/beancount/blob/v2/setup.py#L81-L82 49 - pytest 50 ]; 51 52 - # beancount cannot be directly bumped to 3.x 53 - # e.g. https://github.com/NixOS/nixpkgs/issues/380197 54 - passthru.skipBulkUpdate = true; 55 56 - meta = with lib; { 57 homepage = "https://github.com/beancount/beancount"; 58 description = "Double-entry bookkeeping computer language"; 59 longDescription = '' 60 A double-entry bookkeeping computer language that lets you define 61 financial transaction records in a text file, read them in memory, 62 generate a variety of reports from them, and provides a web interface. 63 ''; 64 - license = licenses.gpl2Only; 65 - maintainers = with maintainers; [ 66 - sharzy 67 - polarmutex 68 - ]; 69 }; 70 }
··· 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 }
+58
pkgs/development/python-modules/beangulp/default.nix
···
··· 1 + { 2 + lib, 3 + beancount, 4 + beautifulsoup4, 5 + buildPythonPackage, 6 + chardet, 7 + click, 8 + fetchFromGitHub, 9 + lxml, 10 + petl, 11 + python-magic, 12 + pytestCheckHook, 13 + setuptools, 14 + }: 15 + 16 + buildPythonPackage rec { 17 + pname = "beangulp"; 18 + version = "0.2.0"; 19 + pyproject = true; 20 + 21 + src = fetchFromGitHub { 22 + owner = "beancount"; 23 + repo = "beangulp"; 24 + tag = "v${version}"; 25 + hash = "sha256-h7xLHwEyS+tOI7v6Erp12VfVnxOf4930++zghhC3in4="; 26 + }; 27 + 28 + build-system = [ setuptools ]; 29 + 30 + dependencies = [ 31 + beancount 32 + beautifulsoup4 33 + chardet 34 + click 35 + lxml 36 + python-magic 37 + ]; 38 + 39 + nativeCheckInputs = [ 40 + petl 41 + pytestCheckHook 42 + ]; 43 + 44 + pythonImportsCheck = [ 45 + "beangulp" 46 + ]; 47 + 48 + meta = { 49 + homepage = "https://github.com/beancount/beangulp"; 50 + description = "Importers framework for Beancount"; 51 + longDescription = '' 52 + Beangulp provides a framework for importing transactions into a Beancoount 53 + ledger from account statements and other documents and for managing documents. 54 + ''; 55 + license = lib.licenses.gpl2Only; 56 + maintainers = with lib.maintainers; [ alapshin ]; 57 + }; 58 + }
+8 -9
pkgs/development/python-modules/beanquery/default.nix
··· 7 python-dateutil, 8 pytestCheckHook, 9 setuptools, 10 - tatsu, 11 }: 12 - buildPythonPackage rec { 13 pname = "beanquery"; 14 - version = "0.1.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "beancount"; 19 repo = "beanquery"; 20 - tag = "v${version}"; 21 - hash = "sha256-1+KTUvnqPceRbzY1OZwOSQdK7f78K9kSwtQfI1SUIa8="; 22 }; 23 24 build-system = [ setuptools ]; ··· 27 beancount 28 click 29 python-dateutil 30 - tatsu 31 ]; 32 - 33 - pythonRelaxDeps = [ "tatsu" ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ 38 - "beancount" 39 "beanquery" 40 ]; 41
··· 7 python-dateutil, 8 pytestCheckHook, 9 setuptools, 10 + tatsu-lts, 11 }: 12 + buildPythonPackage { 13 pname = "beanquery"; 14 + version = "0.1.0-unstable-2025-01-10"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "beancount"; 19 repo = "beanquery"; 20 + # Pinned at commit where tatsu dependency replaced with tatsu-lts 21 + # Later snapsot versions break fava build due to API changes at beanquery/shell.py 22 + rev = "e77a67996a54eef2e9d77b6352c74a40164e281d"; 23 + hash = "sha256-XYfKAscm55lY4YjIGTQ6RMFnCPWemfszpheGQ9qjMiM="; 24 }; 25 26 build-system = [ setuptools ]; ··· 29 beancount 30 click 31 python-dateutil 32 + tatsu-lts 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ 38 "beanquery" 39 ]; 40
+45
pkgs/development/python-modules/petl/default.nix
···
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + pytestCheckHook, 6 + setuptools, 7 + setuptools-scm, 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "petl"; 12 + version = "1.7.15"; 13 + pyproject = true; 14 + 15 + src = fetchFromGitHub { 16 + owner = "petl-developers"; 17 + repo = "petl"; 18 + tag = "v${version}"; 19 + hash = "sha256-zTE6s19/xcu7noT+qQXYrJ8ldrSQVi3AunDKoOMB2Qs="; 20 + }; 21 + 22 + build-system = [ 23 + setuptools 24 + setuptools-scm 25 + ]; 26 + 27 + nativeCheckInputs = [ 28 + pytestCheckHook 29 + ]; 30 + 31 + pythonImportsCheck = [ 32 + "petl" 33 + ]; 34 + 35 + meta = { 36 + homepage = "https://github.com/petl-developers/petl"; 37 + changelog = "https://github.com/petl-developers/petl/releases/tag/${src.tag}"; 38 + description = "Python package for extracting, transforming and loading tables of data"; 39 + license = lib.licenses.mit; 40 + mainProgram = "petl"; 41 + maintainers = with lib.maintainers; [ 42 + alapshin 43 + ]; 44 + }; 45 + }
+46
pkgs/development/python-modules/tatsu-lts/default.nix
···
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + colorama, 5 + fetchFromGitHub, 6 + pytestCheckHook, 7 + regex, 8 + setuptools, 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "tatsu-lts"; 13 + version = "5.13.1"; 14 + pyproject = true; 15 + 16 + src = fetchFromGitHub { 17 + owner = "dnicolodi"; 18 + repo = "TatSu-LTS"; 19 + tag = "v${version}-LTS"; 20 + hash = "sha256-cfGAWZDAnoD3ddhVIkOHyiv7gUDgnAWu1ZBvDEiQ2AQ="; 21 + }; 22 + 23 + build-system = [ setuptools ]; 24 + 25 + dependencies = [ 26 + colorama 27 + regex 28 + ]; 29 + 30 + nativeCheckInputs = [ pytestCheckHook ]; 31 + 32 + pythonImportsCheck = [ "tatsu" ]; 33 + 34 + meta = { 35 + description = "Generates Python parsers from grammars in a variation of EBNF"; 36 + longDescription = '' 37 + TatSu (the successor to Grako) is a tool that takes grammars in a 38 + variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in 39 + Python. 40 + ''; 41 + homepage = "https://tatsu.readthedocs.io/"; 42 + changelog = "https://github.com/dnicolodi/TatSu-LTS/releases/tag/${src.tag}"; 43 + license = lib.licenses.bsd2; 44 + maintainers = with lib.maintainers; [ alapshin ]; 45 + }; 46 + }
+2
pkgs/top-level/all-packages.nix
··· 15924 15925 beancount = with python3.pkgs; toPythonApplication beancount; 15926 15927 beancount-black = with python3.pkgs; toPythonApplication beancount-black; 15928 15929 beanhub-cli = with python3.pkgs; toPythonApplication beanhub-cli;
··· 15924 15925 beancount = with python3.pkgs; toPythonApplication beancount; 15926 15927 + beancount_2 = with python3.pkgs; toPythonApplication beancount_2; 15928 + 15929 beancount-black = with python3.pkgs; toPythonApplication beancount-black; 15930 15931 beanhub-cli = with python3.pkgs; toPythonApplication beanhub-cli;
+8
pkgs/top-level/python-packages.nix
··· 1589 1590 beancount = callPackage ../development/python-modules/beancount { }; 1591 1592 beancount-black = callPackage ../development/python-modules/beancount-black { }; 1593 1594 beancount-parser = callPackage ../development/python-modules/beancount-parser { }; ··· 1596 beancount-docverif = callPackage ../development/python-modules/beancount-docverif { }; 1597 1598 beancount-plugin-utils = callPackage ../development/python-modules/beancount-plugin-utils { }; 1599 1600 beanhub-cli = callPackage ../development/python-modules/beanhub-cli { }; 1601 ··· 9580 9581 nyt-games = callPackage ../development/python-modules/nyt-games { }; 9582 9583 plugp100 = callPackage ../development/python-modules/plugp100 {}; 9584 9585 python-bugzilla = callPackage ../development/python-modules/python-bugzilla { }; ··· 16078 taskw-ng = callPackage ../development/python-modules/taskw-ng { }; 16079 16080 tatsu = callPackage ../development/python-modules/tatsu { }; 16081 16082 taxi = callPackage ../development/python-modules/taxi { }; 16083
··· 1589 1590 beancount = callPackage ../development/python-modules/beancount { }; 1591 1592 + beancount_2 = callPackage ../development/python-modules/beancount/2.nix { }; 1593 + 1594 beancount-black = callPackage ../development/python-modules/beancount-black { }; 1595 1596 beancount-parser = callPackage ../development/python-modules/beancount-parser { }; ··· 1598 beancount-docverif = callPackage ../development/python-modules/beancount-docverif { }; 1599 1600 beancount-plugin-utils = callPackage ../development/python-modules/beancount-plugin-utils { }; 1601 + 1602 + beangulp = callPackage ../development/python-modules/beangulp { }; 1603 1604 beanhub-cli = callPackage ../development/python-modules/beanhub-cli { }; 1605 ··· 9584 9585 nyt-games = callPackage ../development/python-modules/nyt-games { }; 9586 9587 + petl = callPackage ../development/python-modules/petl { }; 9588 + 9589 plugp100 = callPackage ../development/python-modules/plugp100 {}; 9590 9591 python-bugzilla = callPackage ../development/python-modules/python-bugzilla { }; ··· 16084 taskw-ng = callPackage ../development/python-modules/taskw-ng { }; 16085 16086 tatsu = callPackage ../development/python-modules/tatsu { }; 16087 + 16088 + tatsu-lts = callPackage ../development/python-modules/tatsu-lts { }; 16089 16090 taxi = callPackage ../development/python-modules/taxi { }; 16091