From 965c7b08d1a3321a0a69839068275edef16290f4 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sat, 21 Dec 2024 13:12:43 +0800 Subject: [PATCH] python312Packages.senf: 1.5.0 -> 1.5.0-unstable-2024-11-26 --- .../python-modules/senf/default.nix | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/senf/default.nix b/pkgs/development/python-modules/senf/default.nix index 14ed23d06933d..3f4f943500cc7 100644 --- a/pkgs/development/python-modules/senf/default.nix +++ b/pkgs/development/python-modules/senf/default.nix @@ -1,17 +1,21 @@ { buildPythonPackage, - fetchPypi, + fetchFromGitHub, lib, hypothesis, pytestCheckHook, + unstableGitUpdater, }: + buildPythonPackage rec { pname = "senf"; - version = "1.5.0"; + version = "1.5.0-unstable-2024-11-26"; - src = fetchPypi { - inherit pname version; - hash = "sha256-kFlFEOqYVBM47YWmwUOPuiCqoqSW+I3y0tNlSFZjjNE="; + src = fetchFromGitHub { + owner = "quodlibet"; + repo = "senf"; + rev = "b32bb8091f7b46679a23b3f9e9a9157eaa53be95"; + hash = "sha256-JoFmQkjau8e8EXiJbWS7vnv1FarwerO4vGInosxlNEM="; }; nativeCheckInputs = [ @@ -25,13 +29,17 @@ buildPythonPackage rec { "test_expanduser_user" ]; + passthru.updateScript = unstableGitUpdater { + tagPrefix = "v"; + }; + pythonImportsCheck = [ "senf" ]; - meta = with lib; { + meta = { description = "Consistent filename handling for all Python versions and platforms"; homepage = "https://senf.readthedocs.io/en/latest/"; - license = licenses.mit; - maintainers = with maintainers; [ cab404 ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ cab404 ]; }; }