Commit cd082f7f authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.yamllint: refactor

parent ee880939
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
{ 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";