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