2019-10-26 22:53:27 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, black
|
|
|
|
, pytest
|
|
|
|
, setuptools_scm
|
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-black";
|
2020-10-25 09:06:56 +00:00
|
|
|
version = "0.3.12";
|
2019-10-26 22:53:27 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:56 +00:00
|
|
|
sha256 = "1d339b004f764d6cd0f06e690f6dd748df3d62e6fe1a692d6a5500ac2c5b75a5";
|
2019-10-26 22:53:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ black pytest toml ];
|
|
|
|
|
2020-12-23 19:53:42 +00:00
|
|
|
# does not contain tests
|
|
|
|
doCheck = false;
|
2020-07-13 22:27:52 +01:00
|
|
|
pythonImportsCheck = [ "pytest_black" ];
|
|
|
|
|
2019-10-26 22:53:27 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|