9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
55 lines
1,000 B
Nix
55 lines
1,000 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, maison
|
|
, pdm-pep517
|
|
, pytest-xdist
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, ruyaml
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yamlfix";
|
|
version = "1.11.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lyz-code";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-NWlZYpdiJ3SWY0L9IhGhCAUrurWe6mPt+AK64szCQco=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
pdm-pep517
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
maison
|
|
ruyaml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"yamlfix"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python YAML formatter that keeps your comments";
|
|
homepage = "https://github.com/lyz-code/yamlfix";
|
|
changelog = "https://github.com/lyz-code/yamlfix/blob/${version}/CHANGELOG.md";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ koozz ];
|
|
};
|
|
}
|