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-06-06 07:47:27 +01:00
|
|
|
version = "0.17.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-06-06 07:47:27 +01:00
|
|
|
sha256 = "b0c177d63f6e3f5b82fa2720a6570dd2ecff1616c26ed6d02d0cbf75fd98ddf9";
|
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
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytest
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|