2021-01-25 08:26:54 +00:00
|
|
|
{ lib,
|
2020-09-02 22:32:07 +01:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
black
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "black-macchiato";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wbolster";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ black ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook black ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "black" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-09-02 22:32:07 +01:00
|
|
|
description = "This is a small utility built on top of the black Python code formatter to enable formatting of partial files";
|
|
|
|
homepage = "https://github.com/wbolster/black-macchiato";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ jperras ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|