Merge pull request #169195 from ambroisie/add-beancount-black

python3Packages.beancount-black: init at 0.1.13

authored by Ryan Lahfa and committed by GitHub aae7365f fccb0aa8

+100
+48
pkgs/development/python-modules/beancount-black/default.nix
···
··· 1 + { lib 2 + , fetchFromGitHub 3 + , buildPythonPackage 4 + , pythonOlder 5 + , beancount-parser 6 + , click 7 + , poetry-core 8 + , pytestCheckHook 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "beancount-black"; 13 + version = "0.1.13"; 14 + 15 + disabled = pythonOlder "3.9"; 16 + format = "pyproject"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "LaunchPlatform"; 20 + repo = "beancount-black"; 21 + rev = version; 22 + sha256 = "sha256-jhcPR+5+e8d9cbcXC//xuBwmZ14xtXNlYtmH5yNSU0E="; 23 + }; 24 + 25 + buildInputs = [ 26 + poetry-core 27 + ]; 28 + 29 + propagatedBuildInputs = [ 30 + beancount-parser 31 + click 32 + ]; 33 + 34 + checkInputs = [ 35 + pytestCheckHook 36 + ]; 37 + 38 + pythonImportsCheck = [ 39 + "beancount_black" 40 + ]; 41 + 42 + meta = with lib; { 43 + description = "Opinioned code formatter for Beancount"; 44 + homepage = "https://github.com/LaunchPlatform/beancount-black/"; 45 + license = with licenses; [ mit ]; 46 + maintainers = with maintainers; [ ambroisie ]; 47 + }; 48 + }
+46
pkgs/development/python-modules/beancount-parser/default.nix
···
··· 1 + { lib 2 + , fetchFromGitHub 3 + , buildPythonPackage 4 + , pythonOlder 5 + , lark 6 + , poetry-core 7 + , pytestCheckHook 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "beancount-parser"; 12 + version = "0.1.21"; 13 + 14 + disabled = pythonOlder "3.9"; 15 + format = "pyproject"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "LaunchPlatform"; 19 + repo = "beancount-parser"; 20 + rev = version; 21 + sha256 = "sha256-0uhH75OEjC9iA0XD0VX7CGoRIP/hpM4y+53JnyXgZpA="; 22 + }; 23 + 24 + buildInputs = [ 25 + poetry-core 26 + ]; 27 + 28 + propagatedBuildInputs = [ 29 + lark 30 + ]; 31 + 32 + checkInputs = [ 33 + pytestCheckHook 34 + ]; 35 + 36 + pythonImportsCheck = [ 37 + "beancount_parser" 38 + ]; 39 + 40 + meta = with lib; { 41 + description = "Standalone Lark based Beancount syntax parser"; 42 + homepage = "https://github.com/LaunchPlatform/beancount-parser/"; 43 + license = with licenses; [ mit ]; 44 + maintainers = with maintainers; [ ambroisie ]; 45 + }; 46 + }
+2
pkgs/top-level/all-packages.nix
··· 33972 33973 beancount = with python3.pkgs; toPythonApplication beancount; 33974 33975 beancount-language-server = callPackage ../development/tools/beancount-language-server {}; 33976 33977 bean-add = callPackage ../applications/office/beancount/bean-add.nix { };
··· 33972 33973 beancount = with python3.pkgs; toPythonApplication beancount; 33974 33975 + beancount-black = with python3.pkgs; toPythonApplication beancount-black; 33976 + 33977 beancount-language-server = callPackage ../development/tools/beancount-language-server {}; 33978 33979 bean-add = callPackage ../applications/office/beancount/bean-add.nix { };
+4
pkgs/top-level/python-packages.nix
··· 1188 1189 beancount = callPackage ../development/python-modules/beancount { }; 1190 1191 beancount_docverif = callPackage ../development/python-modules/beancount_docverif { }; 1192 1193 beanstalkc = callPackage ../development/python-modules/beanstalkc { };
··· 1188 1189 beancount = callPackage ../development/python-modules/beancount { }; 1190 1191 + beancount-black = callPackage ../development/python-modules/beancount-black { }; 1192 + 1193 + beancount-parser = callPackage ../development/python-modules/beancount-parser { }; 1194 + 1195 beancount_docverif = callPackage ../development/python-modules/beancount_docverif { }; 1196 1197 beanstalkc = callPackage ../development/python-modules/beanstalkc { };