Files
nixpkgs/pkgs/development/python-modules/beancount-black/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
908 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
beancount-parser,
click,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "beancount-black";
version = "1.0.5";
disabled = pythonOlder "3.9";
format = "pyproject";
src = fetchFromGitHub {
owner = "LaunchPlatform";
repo = "beancount-black";
tag = version;
hash = "sha256-vo11mlgDhyc8YFnULJ4AFrANWmGpAMNX5jJ6QaUNqk0=";
};
buildInputs = [ poetry-core ];
propagatedBuildInputs = [
beancount-parser
click
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "beancount_black" ];
meta = {
description = "Opinioned code formatter for Beancount";
mainProgram = "bean-black";
homepage = "https://github.com/LaunchPlatform/beancount-black/";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ ambroisie ];
};
}