ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pytest-black / default.nix
blob918d53c4fa7f7d2f00bd9d5e0b630aef0e6ca168
1 { lib, buildPythonPackage, fetchPypi
2 , black
3 , pytest
4 , setuptools-scm
5 , toml
6 }:
8 buildPythonPackage rec {
9   pname = "pytest-black";
10   version = "0.3.12";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "1d339b004f764d6cd0f06e690f6dd748df3d62e6fe1a692d6a5500ac2c5b75a5";
15   };
17   nativeBuildInputs = [ setuptools-scm ];
19   buildInputs = [ pytest ];
21   propagatedBuildInputs = [ black toml ];
23   # does not contain tests
24   doCheck = false;
25   pythonImportsCheck = [ "pytest_black" ];
27   meta = with lib; {
28     description = "A pytest plugin to enable format checking with black";
29     homepage = "https://github.com/shopkeep/pytest-black";
30     license = licenses.mit;
31     maintainers = with maintainers; [ jonringer ];
32   };