python311Packages.yamllint: refactor

This commit is contained in:
Fabian Affolter 2024-02-22 18:18:02 +01:00
parent ee88093975
commit cd082f7f38

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, setuptools
@ -6,19 +7,18 @@
, pytestCheckHook
, pythonOlder
, pyyaml
, stdenv
}:
buildPythonPackage rec {
pname = "yamllint";
version = "1.35.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "adrienverge";
repo = pname;
repo = "yamllint";
rev = "refs/tags/v${version}";
hash = "sha256-+7Q2cPl4XElI2IfLAkteifFVTrGkj2IjZk7nPuc6eYM=";
};
@ -46,7 +46,9 @@ buildPythonPackage rec {
"test_run_with_locale"
];
pythonImportsCheck = [ "yamllint" ];
pythonImportsCheck = [
"yamllint"
];
meta = with lib; {
description = "A linter for YAML files";