Files
nixpkgs/pkgs/development/python-modules/beancount-black/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

43 lines
878 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
beancount-parser,
click,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "beancount-black";
version = "1.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "LaunchPlatform";
repo = "beancount-black";
tag = finalAttrs.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 ];
};
})