159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
49 lines
873 B
Nix
49 lines
873 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
pylint,
|
|
pytest,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
toml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-pylint";
|
|
version = "0.21.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-iHZLjh1c+hiAkkjgzML8BQNfCMNfCwIi3c/qHDxOVT4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail "pytest-runner" ""
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
dependencies = [
|
|
pylint
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "pytest_pylint" ];
|
|
|
|
meta = with lib; {
|
|
description = "Pytest plugin to check source code with pylint";
|
|
homepage = "https://github.com/carsongee/pytest-pylint";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|