at 24.11-pre 40 lines 864 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 black, 8}: 9 10buildPythonPackage rec { 11 pname = "black-macchiato"; 12 version = "1.3.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "wbolster"; 19 repo = pname; 20 rev = version; 21 sha256 = "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl"; 22 }; 23 24 propagatedBuildInputs = [ black ]; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 black 29 ]; 30 31 pythonImportsCheck = [ "black" ]; 32 33 meta = with lib; { 34 description = "This is a small utility built on top of the black Python code formatter to enable formatting of partial files"; 35 mainProgram = "black-macchiato"; 36 homepage = "https://github.com/wbolster/black-macchiato"; 37 license = licenses.bsd3; 38 maintainers = with maintainers; [ jperras ]; 39 }; 40}