Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
910 B · 44 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445{ 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 = 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 ]; };}