1{ lib, buildPythonPackage, fetchPypi
2, black
3, pytest
4, setuptools_scm
5, toml
6}:
7
8buildPythonPackage rec {
9 pname = "pytest-black";
10 version = "0.3.10";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "0dvlfic7nvfj97rg5fwj7ahw83n9yj3jjbp5m60n47mlx7z0qg2z";
15 };
16
17 nativeBuildInputs = [ setuptools_scm ];
18
19 propagatedBuildInputs = [ black pytest toml ];
20
21 pythonImportsCheck = [ "pytest_black" ];
22
23 meta = with lib; {
24 description = "A pytest plugin to enable format checking with black";
25 homepage = "https://github.com/shopkeep/pytest-black";
26 license = licenses.mit;
27 maintainers = with maintainers; [ jonringer ];
28 };
29}