2019-10-26 22:53:27 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
|
|
|
, black
|
|
|
|
, pytest
|
|
|
|
, setuptools_scm
|
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-black";
|
2020-09-29 15:35:53 +01:00
|
|
|
version = "0.3.11";
|
2019-10-26 22:53:27 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-29 15:35:53 +01:00
|
|
|
sha256 = "1mjxqvzadpyfvypv5isfda9c6lz8xbqci9b4hn58b2lbj3kv0pjr";
|
2019-10-26 22:53:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ black pytest toml ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|