Merge pull request #237078 from fabaff/pytest-pylint-pytest-runner

python311Packages.pytest-pylint: remove pytest-runner
This commit is contained in:
Fabian Affolter 2023-06-10 23:38:44 +02:00 committed by GitHub
commit 9ae95c28ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,41 +1,51 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy27
, pytest
, pylint , pylint
, six , pytest
, pytest-runner , pytestCheckHook
, pythonOlder
, toml , toml
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-pylint"; pname = "pytest-pylint";
version = "0.19.0"; version = "0.19.0";
disabled = isPy27; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-2I6DwQI8ZBVIqew1Z3B87udhZjKphq8TNCbUp00GaTI="; hash = "sha256-2I6DwQI8ZBVIqew1Z3B87udhZjKphq8TNCbUp00GaTI=";
}; };
nativeBuildInputs = [ pytest-runner ]; postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
'';
buildInputs = [ pytest ]; buildInputs = [
pytest
];
propagatedBuildInputs = [ propagatedBuildInputs = [
pylint pylint
six
toml toml
]; ];
# tests not included with release nativeCheckInputs = [
doCheck = false; pytestCheckHook
];
pythonImportsCheck = [
"pytest_pylint"
];
meta = with lib; { meta = with lib; {
description = "pytest plugin to check source code with pylint"; description = "Pytest plugin to check source code with pylint";
homepage = "https://github.com/carsongee/pytest-pylint"; homepage = "https://github.com/carsongee/pytest-pylint";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }