summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-black/default.nix
blob: 567c910a73283e9109aae2f30a58f5534d954665 (plain)
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
34
35
36
37
38
39
40
41
42
{
  lib,
  buildPythonPackage,
  fetchPypi,
  black,
  pytest,
  setuptools-scm,
  toml,
}:

buildPythonPackage rec {
  pname = "pytest-black";
  version = "0.6.0";
  format = "setuptools";

  src = fetchPypi {
    pname = "pytest_black";
    inherit version;
    sha256 = "sha256-7Ld0VfN5gFy0vY9FqBOjdUw7vuMZmt8bNmXA39CGtRE=";
  };

  build-system = [ setuptools-scm ];

  buildInputs = [ pytest ];

  dependencies = [
    black
    toml
  ];

  # does not contain tests
  doCheck = false;

  pythonImportsCheck = [ "pytest_black" ];

  meta = {
    description = "Pytest plugin to enable format checking with black";
    homepage = "https://github.com/shopkeep/pytest-black";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}