about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytest-black/default.nix
blob: 629b4292f86e386e9f3c0e2af348705400b17e0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, buildPythonPackage, fetchPypi
, black
, pytest
, setuptools_scm
, toml
}:

buildPythonPackage rec {
  pname = "pytest-black";
  version = "0.3.12";

  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 ];
  };
}