diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/beancount-black/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/beancount-black/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/beancount-black/default.nix b/nixpkgs/pkgs/development/python-modules/beancount-black/default.nix new file mode 100644 index 000000000000..9dcd709bff11 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/beancount-black/default.nix @@ -0,0 +1,48 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, pythonOlder +, beancount-parser +, click +, poetry-core +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "beancount-black"; + version = "0.2.1"; + + disabled = pythonOlder "3.9"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "LaunchPlatform"; + repo = "beancount-black"; + rev = version; + hash = "sha256-wvAQnwnyHn5Koc/UN4zpJ3JDmFbDoUrpCTmJCpSP7Mg="; + }; + + buildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + beancount-parser + click + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "beancount_black" + ]; + + meta = with lib; { + description = "Opinioned code formatter for Beancount"; + homepage = "https://github.com/LaunchPlatform/beancount-black/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ ambroisie ]; + }; +} |