587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
49 lines
918 B
Nix
49 lines
918 B
Nix
{ 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";
|
|
mainProgram = "bean-black";
|
|
homepage = "https://github.com/LaunchPlatform/beancount-black/";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|