Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 42 lines 878 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 beancount-parser, 6 click, 7 poetry-core, 8 pytestCheckHook, 9}: 10 11buildPythonPackage (finalAttrs: { 12 pname = "beancount-black"; 13 version = "1.0.5"; 14 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "LaunchPlatform"; 19 repo = "beancount-black"; 20 tag = finalAttrs.version; 21 hash = "sha256-vo11mlgDhyc8YFnULJ4AFrANWmGpAMNX5jJ6QaUNqk0="; 22 }; 23 24 buildInputs = [ poetry-core ]; 25 26 propagatedBuildInputs = [ 27 beancount-parser 28 click 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "beancount_black" ]; 34 35 meta = { 36 description = "Opinioned code formatter for Beancount"; 37 mainProgram = "bean-black"; 38 homepage = "https://github.com/LaunchPlatform/beancount-black/"; 39 license = with lib.licenses; [ mit ]; 40 maintainers = with lib.maintainers; [ ambroisie ]; 41 }; 42})