1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 black,
6 pytest,
7 setuptools-scm,
8 toml,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-black";
13 version = "0.6.0";
14 format = "setuptools";
15
16 src = fetchPypi {
17 pname = "pytest_black";
18 inherit version;
19 sha256 = "sha256-7Ld0VfN5gFy0vY9FqBOjdUw7vuMZmt8bNmXA39CGtRE=";
20 };
21
22 build-system = [ setuptools-scm ];
23
24 buildInputs = [ pytest ];
25
26 dependencies = [
27 black
28 toml
29 ];
30
31 # does not contain tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "pytest_black" ];
35
36 meta = with lib; {
37 description = "Pytest plugin to enable format checking with black";
38 homepage = "https://github.com/shopkeep/pytest-black";
39 license = licenses.mit;
40 maintainers = [ ];
41 };
42}