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

40 lines
781 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
black,
pytest,
setuptools-scm,
toml,
}:
buildPythonPackage rec {
pname = "pytest-black";
version = "0.3.12";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1d339b004f764d6cd0f06e690f6dd748df3d62e6fe1a692d6a5500ac2c5b75a5";
};
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ pytest ];
propagatedBuildInputs = [
black
toml
];
# does not contain tests
doCheck = false;
pythonImportsCheck = [ "pytest_black" ];
meta = with lib; {
description = "A pytest plugin to enable format checking with black";
homepage = "https://github.com/shopkeep/pytest-black";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}