biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pytest-black / default.nix
blobf46abe031c3f3face5be28a3ce9f595c3872ce10
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   black,
6   pytest,
7   setuptools-scm,
8   toml,
9 }:
11 buildPythonPackage rec {
12   pname = "pytest-black";
13   version = "0.3.12";
14   format = "setuptools";
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "1d339b004f764d6cd0f06e690f6dd748df3d62e6fe1a692d6a5500ac2c5b75a5";
19   };
21   nativeBuildInputs = [ setuptools-scm ];
23   buildInputs = [ pytest ];
25   propagatedBuildInputs = [
26     black
27     toml
28   ];
30   # does not contain tests
31   doCheck = false;
32   pythonImportsCheck = [ "pytest_black" ];
34   meta = with lib; {
35     description = "Pytest plugin to enable format checking with black";
36     homepage = "https://github.com/shopkeep/pytest-black";
37     license = licenses.mit;
38     maintainers = [ ];
39   };