mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 08:38:18 +03:00
python311Packages.yamllint: refactor
This commit is contained in:
parent
ee88093975
commit
cd082f7f38
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user