2019-04-12 14:43:53 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-04-02 01:56:43 +01:00
|
|
|
, isPy27
|
2019-04-12 14:43:53 +01:00
|
|
|
, pytest
|
|
|
|
, pylint
|
|
|
|
, six
|
|
|
|
, pytestrunner
|
2020-06-11 13:13:08 +01:00
|
|
|
, toml
|
2019-04-12 14:43:53 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-pylint";
|
2020-11-10 07:00:04 +00:00
|
|
|
version = "0.18.0";
|
2020-04-02 01:56:43 +01:00
|
|
|
disabled = isPy27;
|
2019-04-12 14:43:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-10 07:00:04 +00:00
|
|
|
sha256 = "790c7a8019fab08e59bd3812db1657a01995a975af8b1c6ce95b9aa39d61da27";
|
2019-04-12 14:43:53 +01:00
|
|
|
};
|
|
|
|
|
2020-06-11 13:13:08 +01:00
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
2019-04-12 14:43:53 +01:00
|
|
|
|
2021-03-12 22:20:19 +00:00
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
2019-04-12 14:43:53 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pylint
|
|
|
|
six
|
2020-06-11 13:13:08 +01:00
|
|
|
toml
|
2019-04-12 14:43:53 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# tests not included with release
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "pytest plugin to check source code with pylint";
|
2020-04-02 01:43:56 +01:00
|
|
|
homepage = "https://github.com/carsongee/pytest-pylint";
|
2019-04-12 14:43:53 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|