From f73d9fa02dab28515ad59c2d9eeaf6f88364d12b Mon Sep 17 00:00:00 2001 From: emaryn Date: Wed, 11 Jun 2025 06:34:36 +0800 Subject: [PATCH] yamlfix: 1.16.0 -> 1.16.1 --- .../python-modules/yamlfix/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/yamlfix/default.nix b/pkgs/development/python-modules/yamlfix/default.nix index b91cb7bb5b11..dacfc5d51199 100644 --- a/pkgs/development/python-modules/yamlfix/default.nix +++ b/pkgs/development/python-modules/yamlfix/default.nix @@ -11,6 +11,7 @@ pythonOlder, ruyaml, setuptools, + writableTmpDirAsHomeHook, }: let maison143 = maison.overridePythonAttrs (old: rec { @@ -26,7 +27,7 @@ in buildPythonPackage rec { pname = "yamlfix"; - version = "1.16.0"; + version = "1.16.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -35,7 +36,7 @@ buildPythonPackage rec { owner = "lyz-code"; repo = "yamlfix"; tag = version; - hash = "sha256-nadyBIzXHbWm0QvympRaYU38tuPJ3TPJg8EbvVv+4L0="; + hash = "sha256-RRpU6cxb3a3g6RrJbUCxY7YC87HHbGkhOFtE3hf8HdA="; }; build-system = [ @@ -49,16 +50,15 @@ buildPythonPackage rec { ruyaml ]; + pythonRelaxDeps = [ "maison" ]; + nativeCheckInputs = [ pytest-freezegun pytest-xdist pytestCheckHook + writableTmpDirAsHomeHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "yamlfix" ]; pytestFlagsArray = [ @@ -66,11 +66,12 @@ buildPythonPackage rec { "ignore::DeprecationWarning" ]; - meta = with lib; { + meta = { 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 ]; + mainProgram = "yamlfix"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ koozz ]; }; }