nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 819 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pylint, 7 pytest, 8 pytestCheckHook, 9 toml, 10}: 11 12buildPythonPackage rec { 13 pname = "pytest-pylint"; 14 version = "0.21.0"; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-iHZLjh1c+hiAkkjgzML8BQNfCMNfCwIi3c/qHDxOVT4="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace-fail "pytest-runner" "" 25 ''; 26 27 build-system = [ setuptools ]; 28 29 buildInputs = [ pytest ]; 30 31 dependencies = [ 32 pylint 33 toml 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "pytest_pylint" ]; 39 40 meta = { 41 description = "Pytest plugin to check source code with pylint"; 42 homepage = "https://github.com/carsongee/pytest-pylint"; 43 license = lib.licenses.mit; 44 maintainers = [ ]; 45 }; 46}