Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 48 lines 883 B view raw
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pythonOlder 5, beancount-parser 6, click 7, poetry-core 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "beancount-black"; 13 version = "0.1.13"; 14 15 disabled = pythonOlder "3.9"; 16 format = "pyproject"; 17 18 src = fetchFromGitHub { 19 owner = "LaunchPlatform"; 20 repo = "beancount-black"; 21 rev = version; 22 sha256 = "sha256-jhcPR+5+e8d9cbcXC//xuBwmZ14xtXNlYtmH5yNSU0E="; 23 }; 24 25 buildInputs = [ 26 poetry-core 27 ]; 28 29 propagatedBuildInputs = [ 30 beancount-parser 31 click 32 ]; 33 34 checkInputs = [ 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ 39 "beancount_black" 40 ]; 41 42 meta = with lib; { 43 description = "Opinioned code formatter for Beancount"; 44 homepage = "https://github.com/LaunchPlatform/beancount-black/"; 45 license = with licenses; [ mit ]; 46 maintainers = with maintainers; [ ambroisie ]; 47 }; 48}