depot/third_party/nixpkgs/pkgs/development/python-modules/black-macchiato/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
864 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
black,
}:
buildPythonPackage rec {
pname = "black-macchiato";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "wbolster";
repo = pname;
rev = version;
sha256 = "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl";
};
propagatedBuildInputs = [ black ];
nativeCheckInputs = [
pytestCheckHook
black
];
pythonImportsCheck = [ "black" ];
meta = with lib; {
description = "This is a small utility built on top of the black Python code formatter to enable formatting of partial files";
mainProgram = "black-macchiato";
homepage = "https://github.com/wbolster/black-macchiato";
license = licenses.bsd3;
maintainers = with maintainers; [ jperras ];
};
}