depot/third_party/nixpkgs/pkgs/development/python-modules/yamllint/default.nix
Default email 07b8fe0546 Project import generated by Copybara.
GitOrigin-RevId: 916ee862e87ac5ee2439f2fb7856386b4dc906ae
2021-03-12 08:09:13 +01:00

42 lines
849 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pathspec
, pytestCheckHook
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "yamllint";
version = "1.25.0";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "b1549cbe5b47b6ba67bdeea31720f5c51431a4d0c076c1557952d841f7223519";
};
propagatedBuildInputs = [
pyyaml
pathspec
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# Test failure could be related to https://github.com/adrienverge/yamllint/issues/334
"test_find_files_recursively"
];
pythonImportsCheck = [ "yamllint" ];
meta = with lib; {
description = "A linter for YAML files";
homepage = "https://github.com/adrienverge/yamllint";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jonringer mikefaille ];
};
}