From 23e62e1e6fd581eb37f928fa8d6c6925554ba53c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 20 Jan 2026 23:38:44 +0000 Subject: [PATCH] python3Packages.simple-parsing: 0.1.7 -> 0.1.8 Diff: https://github.com/lebrice/SimpleParsing/compare/v0.1.7...v0.1.8 Changelog: https://github.com/lebrice/SimpleParsing/releases/tag/v0.1.8 --- .../python-modules/simple-parsing/default.nix | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/simple-parsing/default.nix b/pkgs/development/python-modules/simple-parsing/default.nix index c82f5434b786..ed6f60301656 100644 --- a/pkgs/development/python-modules/simple-parsing/default.nix +++ b/pkgs/development/python-modules/simple-parsing/default.nix @@ -2,10 +2,11 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, # build-system - poetry-core, - poetry-dynamic-versioning, + hatchling, + uv-dynamic-versioning, # dependencies docstring-parser, @@ -25,21 +26,21 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "simple-parsing"; - version = "0.1.7"; + version = "0.1.8"; pyproject = true; src = fetchFromGitHub { owner = "lebrice"; repo = "SimpleParsing"; - tag = "v${version}"; - hash = "sha256-wHk3osr5CNmA/g9ipLy1dgvJoMy1zE/BAGD9ZATE+tc="; + tag = "v${finalAttrs.version}"; + hash = "sha256-Nsr+I+BoVxockRGQAjG+ushRQ4CtWgkHrg5aVorSrvw="; }; build-system = [ - poetry-core - poetry-dynamic-versioning + hatchling + uv-dynamic-versioning ]; dependencies = [ @@ -81,13 +82,22 @@ buildPythonPackage rec { "test_running_example_outputs_expected_without_arg" "test_subgroup_partial_with_nested_field" "test_weird_docstring_with_field_like" + ] + ++ lib.optionals (pythonAtLeast "3.14") [ + # AssertionError ("usagepython314mpytesthmixed..." != "usagepython314mpytesthmixed") + "test_each_type_is_used_correctly" + "test_issue_46" + "test_issue_46_solution2" + + # TypeError: dest= is required for options like '---------' + "test_pass_invalid_value_to_add_config_path_arg" ]; meta = { description = "Simple, Elegant, Typed Argument Parsing with argparse"; - changelog = "https://github.com/lebrice/SimpleParsing/releases/tag/v${version}"; + changelog = "https://github.com/lebrice/SimpleParsing/releases/tag/${finalAttrs.src.tag}"; homepage = "https://github.com/lebrice/SimpleParsing"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})