depot/third_party/nixpkgs/pkgs/development/python-modules/beancount-black/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
910 B
Nix

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