2021-12-30 13:39:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, fetchFromGitHub
|
2023-02-02 18:25:31 +00:00
|
|
|
, maison
|
|
|
|
, pdm-pep517
|
2021-12-30 13:39:12 +00:00
|
|
|
, pytest-xdist
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, ruyaml
|
2023-02-02 18:25:31 +00:00
|
|
|
, setuptools
|
2021-12-30 13:39:12 +00:00
|
|
|
}:
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yamlfix";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.11.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "pyproject";
|
2021-12-30 13:39:12 +00:00
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lyz-code";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-NWlZYpdiJ3SWY0L9IhGhCAUrurWe6mPt+AK64szCQco=";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
pdm-pep517
|
|
|
|
];
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
2023-02-02 18:25:31 +00:00
|
|
|
maison
|
2021-12-30 13:39:12 +00:00
|
|
|
ruyaml
|
|
|
|
];
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-30 13:39:12 +00:00
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"yamlfix"
|
|
|
|
];
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-30 13:39:12 +00:00
|
|
|
description = "Python YAML formatter that keeps your comments";
|
2021-12-24 04:21:11 +00:00
|
|
|
homepage = "https://github.com/lyz-code/yamlfix";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/lyz-code/yamlfix/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl3Only;
|
2021-12-24 04:21:11 +00:00
|
|
|
maintainers = with maintainers; [ koozz ];
|
|
|
|
};
|
|
|
|
}
|