mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
36 lines
803 B
Nix
36 lines
803 B
Nix
{ lib,
|
|
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 ];
|
|
|
|
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";
|
|
homepage = "https://github.com/wbolster/black-macchiato";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ jperras ];
|
|
};
|
|
|
|
}
|